Amazon EKS Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 20: Line 20:
Added new context arn:aws:eks:us-east-1:999999999999:cluster/example-eks-cluster to /Users/testuser/.kube/config
Added new context arn:aws:eks:us-east-1:999999999999:cluster/example-eks-cluster to /Users/testuser/.kube/config
</syntaxhighlight>
</syntaxhighlight>
The default name of the context is the name of the IAM role, but it can be changed to make it more wieldy.

Revision as of 23:09, 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

The default name of the context is the name of the IAM role, but it can be changed to make it more wieldy.