Difference between revisions of "Aws eks update-kubeconfig"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 2: | Line 2: | ||
<code>[[aws eks]] update-kubeconfig</code> configures <code>[[kubectl]]</code> so that you can connect to an Amazon EKS cluster. | <code>[[aws eks]] update-kubeconfig</code> configures <code>[[kubectl]]</code> so that you can connect to an Amazon EKS cluster. | ||
* 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 | ||
+ | |||
+ | [[aws eks list-clusters]] --output text | awk '{print $2}' | xargs -n1 [[aws eks]] update-kubeconfig --name | ||
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 19:06, 10 June 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
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 --region $(terraform output -raw region) update-kubeconfig --name $(terraform output -raw cluster_name)
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>]
Related
.kube/config
eksctl get cluster --all-regions
aws eks list-clusters
kubectl get nodes
kubectl cluster-info
aws eks list-clusters --output text | awk '{print $2}' | xargs -n1 aws eks update-kubeconfig --name
See also
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io- AWS EKS:
AWS::EKS
,aws eks [ create-cluster | list-clusters
|describe-cluster
|update-kubeconfig | list-updates | list-addons | update-cluster-version | update-nodegroup-version | get-token | create-addon ]
Advertising: