Question

DIgitalOcean change NodePort to LoadBalancer

I create kubernetes cluster, and release kubernetes.github.io/ingress-nginx with config:

    controller:
      service:
        type: NodePort
        nodePorts:
          http: 32080
          https: 32443
      nodeSelector:
        node-role/public: ''

kubectl get svc --all-namespaces:

NAMESPACE     NAME                                       TYPE           CLUSTER-IP       EXTERNAL-IP      PORT(S)                      AGE
# network       nginx-ingress-nginx-controller             NodePort    10.245.224.82    <none>        80:32080/TCP,443:32443/TCP   22m

A couple of minutes after deployment, I see the following events:

NodePort -> LoadBalancer

kubectl get svc --all-namespaces:

NAMESPACE     NAME                                       TYPE           CLUSTER-IP       EXTERNAL-IP      PORT(S)                      AGE
# network       nginx-ingress-nginx-controller             LoadBalancer   10.245.224.82    ***   80:31484/TCP,443:30889/TCP   29m

and the created load balancer in DO panel.

After I drop loadbalancer in DO panel I see events:

LoadBalancer -> NodePort
Deleted load balancer

But after a couple of minutes, the situation repeats itself


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Can be closed