...
Info | ||
---|---|---|
| ||
When you execute the command kubectl expose deployment <deployment name> --type=LoadBalancer --port=<port>, you do not need to use a port value of 80 when another service is going to use this service. The only reason we have used 80 here is because we want to view the service via a browser. |
Worked Example
To create a deploy it's usually as simple as tying the following
But when check if there is a deploy you may find that it says there are no resources
It's best to work from a deployment file
Begin by creating a yaml file
...
Execute the following command
Now use the get pods and get deployments commands to see what has been created
Notice the name of the pod, it has a unique ID appended to the deployment name
...