Divya Jain:
Hi, Can someone please tell how to create a port specification with a name eg http, 80/TCP in a deployment and then expose the port specification as a service
Fernando Jimenez:
Add the following to the containers template in the deployment:
ports:
- containerPort: 80
name: http
Create the service with something like this:
kubectl expose deploy <deployment-name> --name <service-name> --port 80 --target-port http