Amazon EKS Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 13: Line 13:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
aws eks --region us-east-1 update-kubeconfig --name example-eks-cluster
aws eks --region us-east-1 update-kubeconfig --name example-eks-cluster
</syntaxhighlight>
The result is to add a new context to ./kube/config:
<syntaxhighlight lang='bash'>
Added new context arn:aws:eks:us-east-1:999999999999:cluster/example-eks-cluster to /Users/testuser/.kube/config
</syntaxhighlight>
</syntaxhighlight>

Revision as of 23:08, 12 June 2020

External

Internal

Overview

Connect to an EKS Cluster with kubectl

Update .kube/config with the EKS cluster definition as follows:

aws eks --region us-east-1 update-kubeconfig --name example-eks-cluster

The result is to add a new context to ./kube/config:

Added new context arn:aws:eks:us-east-1:999999999999:cluster/example-eks-cluster to /Users/testuser/.kube/config