“Kubectl Exec” Respostas de código

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 Exec ls -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

Respostas semelhantes a “Kubectl Exec”

Perguntas semelhantes a “Kubectl Exec”

Mais respostas relacionadas para “Kubectl Exec” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código