Kubernetes service external ip pending

后端 未结 20 1908
你的背包
你的背包 2020-11-28 02:38

I am trying to deploy nginx on kubernetes, kubernetes version is v1.5.2, I have deployed nginx with 3 replica, YAML file is below,

apiVersion: extensions/v1be         


        
20条回答
  •  清歌不尽
    2020-11-28 03:14

    Following @Javier's answer. I have decided to go with "patching up the external IP" for my load balancer.

     $ kubectl patch service my-loadbalancer-service-name \
    -n lb-service-namespace \
    -p '{"spec": {"type": "LoadBalancer", "externalIPs":["192.168.39.25"]}}'
    

    This will replace that 'pending' with a new patched up IP address you can use for your cluster.

    For more on this. Please see karthik's post on LoadBalancer support with Minikube for Kubernetes

    Not the cleanest way to do it. I needed a temporary solution. Hope this helps somebody.

提交回复
热议问题