Difference between revisions of "Exec:"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | |||
+ | [[livenessProbe:]] | ||
+ | {{liveness-exec}} | ||
Line 22: | Line 25: | ||
− | + | ||
{{kubeconfig}} | {{kubeconfig}} |
Latest revision as of 08:47, 25 October 2024
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: