“Kubectl Exec Bash” Código de respuesta

kubectl ejecutor

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

Respuestas similares a “Kubectl Exec Bash”

Preguntas similares a “Kubectl Exec Bash”

Más respuestas relacionadas con “Kubectl Exec Bash” en Shell/Bash

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código