Service

One of the essential commands that might come handy are

kubectl expose pod <pod-name> --port=<number> --name=<service-name>

Following create service with same name as pod and exposes it

kubectl run <pod-name> --image=<image-name> --port=<number> --expose=true

Last updated