operating k8s – misc notes

get into a specific container

e.g. when the sidecar is in your way…

kubectl get pods 
kubectl get pod POD_NAME_HERE -o jsonpath='{.spec.containers[*].name}'; echo

gives e.g.

exporter haproxy

so let’s get into the haproxy container

kubectl exec -ti POD_NAME_HERE -c haproxy -- /bin/bash

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT