Difference between revisions of "Aws eks update-kubeconfig"

From wikieduonline
Jump to navigation Jump to search
Line 20: Line 20:
  
 
== Synopsys ==
 
== Synopsys ==
<pre>
+
 
  update-kubeconfig
+
  update-kubeconfig
--name <value>
+
--name <value>
[--kubeconfig <value>]
+
[--kubeconfig <value>]
[--role-arn <value>]
+
[--role-arn <value>]
[--dry-run]
+
[--dry-run]
[--verbose]
+
[--verbose]
[--alias <value>]
+
[--alias <value>]
</pre>
 
  
 
== See also ==
 
== See also ==

Revision as of 18:27, 10 May 2022

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


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