Difference between revisions of "Aws eks update-kubeconfig"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/update-kubeconfig.html
 
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/update-kubeconfig.html
* <code>[[aws eks]] update-kubeconfig</code>
+
* <code>[[aws eks]] update-kubeconfig --name <value></code>
 
* <code>[[aws eks]] --region $([[terraform output]] -raw region) update-kubeconfig --name $([[terraform output -raw cluster_name]])</code>
 
* <code>[[aws eks]] --region $([[terraform output]] -raw region) update-kubeconfig --name $([[terraform output -raw cluster_name]])</code>
  

Revision as of 13:45, 5 December 2021

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/update-kubeconfig.html


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
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

Synopsys

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


See also

Advertising: