Difference between revisions of "Exec:"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | |||
+ | - name: arn:aws:eks:us-east-1:123324324:cluster/education-eks-rQbSpHq6 | ||
+ | user: | ||
+ | exec: | ||
+ | apiVersion: [[client.authentication.k8s.io]]/v1beta1 | ||
+ | args: | ||
+ | - --region | ||
+ | - us-east-1 | ||
+ | - eks | ||
+ | - [[get-token]] | ||
+ | - --cluster-name | ||
+ | - education-eks-rQbSpHq6 | ||
+ | - --output | ||
+ | - json | ||
+ | command: aws | ||
+ | env: | ||
+ | - name: AWS_PROFILE | ||
+ | value: yourprofile | ||
{{kubeconfig}} | {{kubeconfig}} |
Revision as of 16:00, 21 November 2023
- name: arn:aws:eks:us-east-1:123324324:cluster/education-eks-rQbSpHq6 user: exec: apiVersion: client.authentication.k8s.io/v1beta1 args: - --region - us-east-1 - eks - get-token - --cluster-name - education-eks-rQbSpHq6 - --output - json command: aws env: - name: AWS_PROFILE value: yourprofile
kubectl config
[ view | get-contexts | current-context | get-clusters | set-context | set-credentials ], ~/.kube/config, kubectl config --help
, kubectx
, Kubernetes contexts, KUBECONFIG, kubectl --kubeconfig
Advertising: