Difference between revisions of "Aws eks update-kubeconfig"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
  [[aws eks list-clusters]] --output text | awk '{print $2}' | xargs -n1 [[aws eks]] update-kubeconfig --name
 
  [[aws eks list-clusters]] --output text | awk '{print $2}' | xargs -n1 [[aws eks]] update-kubeconfig --name
  Added new context arn:aws:eks:eu-central-1:0987654321:cluster/production-eks-3yxD5aRA to /Users/my_user[[/.kube/config]]
+
  [[Added new context]] arn:aws:eks:eu-central-1:0987654321:cluster/production-eks-3yxD5aRA to /Users/my_user[[/.kube/config]]
  
 
  aws eks update-kubeconfig [[--region]] [[us-east-2]] --name education-eks-LZIQaQdP
 
  aws eks update-kubeconfig [[--region]] [[us-east-2]] --name education-eks-LZIQaQdP

Revision as of 21:28, 26 September 2022

aws eks update-kubeconfig configures kubectl so that you can connect to an Amazon EKS cluster.

aws eks list-clusters --output text | awk '{print $2}' | xargs -n1 aws eks update-kubeconfig --name
Added new context arn:aws:eks:eu-central-1:0987654321:cluster/production-eks-3yxD5aRA to /Users/my_user/.kube/config
aws eks update-kubeconfig --region us-east-2 --name education-eks-LZIQaQdP
Added new context arn:aws:eks:us-east-2:0987654321:cluster/education-eks-LZIQaQdP to /Users/my_user/.kube/config
aws eks update-kubeconfig --name my-eks-cluster-name
Updated context arn:aws:eks:us-east-2:0987654321:cluster/my-eks-cluster-name< in /Users/MY_USER/.kube/config
aws eks update-kubeconfig --name eks-cluster-name --region aws-region --role-arn




aws eks --region $(terraform output -raw region) update-kubeconfig --name $(terraform output -raw cluster_name)
Added new context arn:aws:eks:us-east-2:012345678912:cluster/education-eks-Ry318DCv to /Users/your_user/.kube/config

Errors

error: You must be logged in to the server (Unauthorized)
aws eks --region $(terraform output -raw region) update-kubeconfig --name $(terraform output -raw cluster_name)
'NoneType' object is not iterable
Solution: rm ~/.kube/config and execute it again

Synopsys

  update-kubeconfig
--name <value>
[--kubeconfig <value>]
[--role-arn <value>]
[--dry-run]
[--verbose]
[--alias <value>]

Activities

Related

See also

Advertising: