You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Managed Node Group not able to Join EKS cluster **:
I have existing single cluster its in active state, When I'm planning to use custom AMI using launch template managed node group not able to join to the cluster:
**
1.bootstrap_user_data file has been created and its converted to base64 format as per the standard.
#!/bin/bash set -ex B64_CLUSTER_CA= <My eks cluster Certificate authority value> API_SERVER_URL= <My EKS cluster API server URl> /etc/eks/bootstrap.sh <cluster-name> --b64-cluster-ca $B64_CLUSTER_CA --apiserver-endpoint $API_SERVER_URL
cat bootstrap_user_data | base64
Launch template created via custom-configuration.json file with below data
7.After executing node group creation command it was taking 20 min to create node group at the same time desired VM is created as part of auto scaling group but nodes group not able to join to the cluster after 20 min.
8. Connect to your Amazon EKS worker node instance with SSH and check kubelet agent logs
ssh -i my.key ec2-user@1.2.3.4 sudo -i cd /etc/eks/bootstrap.sh -bash: cd: /etc/eks: No such file or directory
**:
could you please some one help why my bootstrap.sh file not exists inside the /etc/eks location in other hand in AWS console launch template - Advanced tab - i can able to see my user data in decoded format.:
**Managed Node Group not able to Join EKS cluster **:
I have existing single cluster its in active state, When I'm planning to use custom AMI using launch template managed node group not able to join to the cluster:
**
1.bootstrap_user_data file has been created and its converted to base64 format as per the standard.
#!/bin/bash set -ex B64_CLUSTER_CA= <My eks cluster Certificate authority value> API_SERVER_URL= <My EKS cluster API server URl> /etc/eks/bootstrap.sh <cluster-name> --b64-cluster-ca $B64_CLUSTER_CA --apiserver-endpoint $API_SERVER_URL
cat config_custom_ami.json { "LaunchTemplateData": { "EbsOptimized": false, "ImageId": "ami-0e00c1f097aff7fe8", "InstanceType": "t3.small", "UserData": "bootstrap_user_data", "SecurityGroupIds": [ "sg-0e9b58499f42bcd4b" ] } }
4.Security group has been selected EKS cluster security group it was created automatically while creating EKS cluster first time.
aws ec2 create-launch-template --region eu-central-1 --launch-template-name my-template-name --version-description "first version " --cli-input-json file://custom.config.json
6.creating node group using eksctl command
aws eks create-nodegroup --region eu-central-1 --cluster-name my-cluster --nodegroup-name my-node-group --subnets subnet-<subnet1> subnet-<subnet2> --node-role 'arn:aws:iam::123456789:role/EKSNODEGROUP' --launch-template name=my-template-name
7.After executing node group creation command it was taking 20 min to create node group at the same time desired VM is created as part of auto scaling group but nodes group not able to join to the cluster after 20 min.
8. Connect to your Amazon EKS worker node instance with SSH and check kubelet agent logs
ssh -i my.key ec2-user@1.2.3.4 sudo -i cd /etc/eks/bootstrap.sh -bash: cd: /etc/eks: No such file or directory
**:
could you please some one help why my bootstrap.sh file not exists inside the /etc/eks location in other hand in AWS console launch template - Advanced tab - i can able to see my user data in decoded format.:
Environment:
AWS Region: eu-central-1
Instance Type(s): t3.medium
EKS Platform version (use
aws eks describe-cluster --name <name> --query cluster.platformVersion
): "eks.1"Kubernetes version (use
aws eks describe-cluster --name <name> --query cluster.version
): "1.20"AMI Version:
Kernel (e.g.
uname -a
): Linux ip-10-2-3-4.eu-central-1.compute.internal 4.14.232-176.381.amzn2.x86_64 Template is missing source_ami_id in the variables section #1 SMP Wed May 19 00:31:54 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxRelease information (run
cat /etc/eks/release
on a node):The text was updated successfully, but these errors were encountered: