From 6a4dd2f30f62645bfa064bd65483a2b1498de238 Mon Sep 17 00:00:00 2001 From: Christian DiRubbio <117473198+cdirubbio@users.noreply.github.com> Date: Wed, 15 Oct 2025 10:09:34 -0400 Subject: [PATCH] [AL2 EOS Prep] Update cni-custom-network-tutorial.adoc NEEDS Additional update after is updated to match AL2023. --- .../cni-custom-network-tutorial.adoc | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/latest/ug/networking/cni-custom-network-tutorial.adoc b/latest/ug/networking/cni-custom-network-tutorial.adoc index 5da40819..632c4531 100644 --- a/latest/ug/networking/cni-custom-network-tutorial.adoc +++ b/latest/ug/networking/cni-custom-network-tutorial.adoc @@ -390,11 +390,26 @@ aws eks create-nodegroup --cluster-name my-custom-networking-cluster --nodegroup + .... Determine the Amazon EKS recommended number of maximum Pods for your nodes. Follow the instructions in <>, adding `--cni-custom-networking-enabled` to step 3 in that topic. Note the output for use in the next step. -.... In your launch template, specify an Amazon EKS optimized AMI ID, or a custom AMI built off the Amazon EKS optimized AMI, then <> and provide the following user data in the launch template. This user data passes arguments into the `bootstrap.sh` file. For more information about the bootstrap file, see https://github.com/awslabs/amazon-eks-ami/blob/main/templates/al2/runtime/bootstrap.sh[bootstrap.sh] on GitHub. You can replace `20` with either the value from the previous step (recommended) or your own value. +.... In your launch template, specify an Amazon EKS optimized AMI ID, or a custom AMI built off the Amazon EKS optimized AMI, then <> and provide the following user data in the launch template. This user data passes arguments into the `NodeConfig` specification. For more information about NodeConfig, see the https://awslabs.github.io/amazon-eks-ami/nodeadm/doc/api/#nodeconfig[NodeConfig API reference]. You can replace `20` with either the value from the previous step (recommended) or your own value. + [source,bash,subs="verbatim,attributes"] ---- -/etc/eks/bootstrap.sh my-custom-networking-cluster --use-max-pods false --kubelet-extra-args '--max-pods=20' +--- +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="BOUNDARY" +--BOUNDARY +Content-Type: application/node.eks.aws + +--- +apiVersion: node.eks.aws/v1alpha1 +kind: NodeConfig +spec: + cluster: + name: my-cluster + ... + kubelet: + config: + maxPods: 20 ---- + If you've created a custom AMI that is not built off the Amazon EKS optimized AMI, then you need to custom create the configuration yourself. @@ -402,12 +417,7 @@ If you've created a custom AMI that is not built off the Amazon EKS optimized AM + ... Determine the Amazon EKS recommended number of maximum Pods for your nodes. Follow the instructions in <>, adding `--cni-custom-networking-enabled` to step 3 in that topic. Note the output for use in the next step. -... Deploy the node group using the instructions in <>. Specify the following text for the *BootstrapArguments* parameter. You can replace `20` with either the value from the previous step (recommended) or your own value. -+ -[source,bash,subs="verbatim,attributes"] ----- ---use-max-pods false --kubelet-extra-args '--max-pods=20' ----- +... Deploy the node group using the instructions in <>. +