“Kubectl Exec” Code-Antworten

Kubectl Exec

kubectl exec -it <pod-name> -n <namespace> -- <command>

example:
--------
kubectl exec -it tag-mgmt -n my-namespace -- /bin/sh
kubectl exec -it timescaledb -n data-store -- psql

timescaledb -> is pod name 
data-store -> is namespace
psql -> is command that we can run for postgres
Glamorous camel

kubectl lss -lah

kubectl exec <pod_name> -- ls -la /
Google's Top Recommendation

Kubectl Exec Bash

kubectl exec --stdin --tty shell-demo -- /bin/bash
Blushing Buffalo

Kubernetes /Bin /Bash

sudo kubectl -n <namespace> --context=<context-with-access> exec <pod-name> -it /bin/bash

ex:
sudo kubectl -n default --context=staging-devops exec microservice1-jd830k-880 -it /bin/bash
Google's Top Recommendation

Ähnliche Antworten wie “Kubectl Exec”

Fragen ähnlich wie “Kubectl Exec”

Weitere verwandte Antworten zu “Kubectl Exec” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen