Skip to content

Commit 7710901

Browse files
committed
docs: Add allowedUnsafeSysctls configuration example for AL2023
Add documentation example showing how to configure allowedUnsafeSysctls using NodeConfig in EC2NodeClass userData for AL2023 AMI family. This addresses the gap in documentation for configuring unsafe sysctls, which is not available in spec.kubelet but can be configured through UserData using the NodeConfig format. Related issue: #2099
1 parent 840d752 commit 7710901

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

website/content/en/docs/concepts/nodeclasses.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,25 @@ spec:
295295
registryPullQPS: 10
296296
```
297297
298+
Similarly, you can configure `allowedUnsafeSysctls` for AL2023:
299+
300+
```yaml
301+
apiVersion: karpenter.k8s.aws/v1
302+
kind: EC2NodeClass
303+
spec:
304+
amiSelectorTerms:
305+
- alias: al2023@latest
306+
userData: |
307+
apiVersion: node.eks.aws/v1alpha1
308+
kind: NodeConfig
309+
spec:
310+
kubelet:
311+
config:
312+
allowedUnsafeSysctls:
313+
- net.core.somaxconn
314+
- net.ipv4.tcp_tw_reuse
315+
```
316+
298317
Note that when using the `Custom` AMIFamily you will need to specify fields **both** in `spec.kubelet` and `spec.userData`.
299318
{{% /alert %}}
300319

0 commit comments

Comments
 (0)