Question

DIgitalOcean change NodePort to LoadBalancer

Posted August 6, 2021 102 views
DigitalOcean Managed Kubernetes

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

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.

×
Submit an Answer
1 answer