Kubectl Reference Docs - Kubernetes
kubernetes.io › docs › referencekubectl expose -f nginx-controller.yaml --port =80 --target-port =8000 Create a service for a pod valid-pod, which serves on port 444 with the name "frontend" kubectl expose pod valid-pod --port =444 --name =frontend Create a second service based on the above service, exposing the container port 8443 as port 443 with the name "nginx-https"