Difference between revisions of "Exec:"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
 +
[[livenessProbe:]]
 +
{{liveness-exec}}
  
  
Line 19: Line 22:
 
       - name: AWS_PROFILE
 
       - name: AWS_PROFILE
 
         value: yourprofile
 
         value: yourprofile
 +
 +
  
  
  
 
{{kubeconfig}}
 
{{kubeconfig}}

Latest revision as of 08:47, 25 October 2024

livenessProbe:

apiVersion: v1
kind: Pod
metadata:
  labels:
    test: liveness
  name: liveness-exec
spec:
  containers:
  - name: liveness
    image: registry.k8s.io/busybox
    args:
    - /bin/sh
    - -c
    - touch /tmp/healthy; sleep 30; rm -f /tmp/healthy; sleep 600
    livenessProbe:
      exec:
        command:
        - cat
        - /tmp/healthy
      initialDelaySeconds: 5
      periodSeconds: 5


- 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: