kubernetes get pod containers code example
Example 1: kubernetes get inside pod
kubectl exec -it -- sh
Example 2: get containers in pod
kubectl get pods POD_NAME_HERE -o jsonpath='{.spec.containers[*].name}'
kubectl exec -it -- sh
kubectl get pods POD_NAME_HERE -o jsonpath='{.spec.containers[*].name}'