Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleNote on Service Port

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

Image Added

But when check if there is a deploy you may find that it says there are no resources

Image Added

It's best to work from a deployment file

Begin by creating a yaml file

...