I have a service in kubernetes that is exposed on port 80 via load balancer on AWS. I also have a DNS configured to point on the load balancer host name.
I want to add another port to the service without replacing it, which also replaces the load balancer and its domain.
The only option I saw is to apply "patch" operation via kubectl. Is there a more convenient way I'm missing?
Thanks
I'm not an expert with ELB, so I don't know if it is possible, but I'll talk about GCE and then assert that AWS should operate similarly.
In Kubernetes v1.0.x there is an unfortunate bug that releases your external load-balancer and recreates it when you update a Service. In Kubernetes v1.1 we have gone to great lengths to NOT release the load-balancer (more precisely the external IP), so that a PUT or a PATCH (kubectl replace or kubectl patch) on the Service is safe. If AWS releases the external load-balancer (I know it's not an IP for ELB) then we should try to find a way to fix that.