Difference between revisions of "~/.kube/config, user:"

From wikieduonline
Jump to navigation Jump to search
(Created page with " {{kubeconfig}}")
 
Line 1: Line 1:
  
 +
 +
kind: Config
 +
preferences: {}
 +
users:
 +
- name: arn:aws:eks:us-east-1:1234567890:cluster/sandbox-eks
 +
  user:
 +
    exec:
 +
      apiVersion: [[client.authentication.k8s.io/v1beta1]]
 +
      args:
 +
      - --region
 +
      - us-east-1
 +
      - eks
 +
      - get-token
 +
      - --cluster-name
 +
      - sandbox-eks
 +
      command: aws
 +
      env:
 +
      - name: AWS_PROFILE
 +
        value: sandbox-profile
  
  
 
{{kubeconfig}}
 
{{kubeconfig}}

Revision as of 16:20, 1 March 2023


kind: Config
preferences: {}
users:
- name: arn:aws:eks:us-east-1:1234567890:cluster/sandbox-eks
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1beta1
      args:
      - --region
      - us-east-1
      - eks
      - get-token
      - --cluster-name
      - sandbox-eks
      command: aws
      env:
      - name: AWS_PROFILE
        value: sandbox-profile


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: