Can you please show me container execution of Kubernetes?
Suppose the pod website has a container called nginx. Then you can do this:
kubectl exec website -c nginx -- curl https://kubernetes:6443
This will execute the “curl” program on the “nginx” container.
Note that if there is only one container in the pod, you can omit the “-c nginx” part, and it will also work.