I can get the IP address of the exposed container through:
kubectl get service hello-node
Say that I want to run ls
on this container and obtain the results. How could I do that?
you might want to use kubectl exec ...
. To run ls
on a containers run:
kubectl exec <pod> ls
You'll find the pod-id with:
kubectl get pods
The full documentation can be found on kubernetes.io
Cheers