Following this guestbook tutorial.
Near the end they sort of gloss over how to create a LoadBalancer
or assign NodePorts
to the service. They reference this doc that describes the different types and what they do, but don't really go into detail about how to apply them to a service. Is there a way to update the running service, creating and attaching a load balancer to the specified ports?
Using Amazon Web Services to host our cluster, it supports load balancer great at creation of a service, but I'm not sure how to modify the service.
EDIT:
Trying this resulted in an error:
$ kubectl expose service frontend --port=80 --type=LoadBalancer
Error from server: service "frontend" already exists