ingress load-balancer not getting ip

41 views
Skip to first unread message

Snd LP

unread,
Aug 16, 2017, 5:08:39 PM8/16/17
to Kubernetes user discussion and Q&A
[ansible@kctl-master kubectl]$ sudo kubectl get services
NAME            CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE
kubernetes      10.254.0.1      <none>        443/TCP        43s
nginx-ingress   10.254.39.207   <pending>     80:32102/TCP   1m
[ansible@kctl-master kubectl]$ 

after running,

trying to have a virtual-ip not being used by this or any nodes for HA.

[ansible@kctl-master kubectl]$ cat 0-ingress.yaml 
apiVersion: v1
kind: Service
metadata:
  name: nginx-ingress
spec:
  type: LoadBalancer
  ports:
    - port: 80
      name: http
      nodePort: 32102
  selector:
    k8s-app: nginx-ingress-lb
[ansible@kctl-master kubectl]$ 

Rémon Sinnema

unread,
Aug 19, 2017, 5:31:41 AM8/19/17
to Kubernetes user discussion and Q&A
How did you set up your cluster? The LoadBalancer type is not supported everywhere, e.g. when using kubeadm.

Snd LP

unread,
Aug 19, 2017, 8:01:03 AM8/19/17
to kubernet...@googlegroups.com
1 master, 3 nodes.

3 interfaces each. 

what is the most common setup?

--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-users/VuWzjnf-G9w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Rémon Sinnema

unread,
Aug 20, 2017, 4:52:02 AM8/20/17
to Kubernetes user discussion and Q&A
I meant what does your cluster run on? E.g AWS, bare metal. The Kubernetes documentation refers to this as the "cloud provider". Not all cloud providers support the LoadBalancer type. See this article [1] for a nice overview of how to access pods externally.

To unsubscribe from this group and all its topics, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.

Snd LP

unread,
Aug 21, 2017, 1:04:17 PM8/21/17
to kubernet...@googlegroups.com
Baremetal/VMware.

Does "," look normal before "EXTERNAL-IP" ?
Thanks.

[root@kctl-master kubectl]# kubectl get services
NAME            CLUSTER-IP     EXTERNAL-IP       PORT(S)        AGE
kubernetes      10.254.0.1     <none>            443/TCP        4d
nginx-ingress   10.254.86.23   ,172.23.162.232   80:32102/TCP   2m
[root@kctl-master kubectl]# cat 0-ingress.yaml 
apiVersion: v1
kind: Service
metadata:
  name: nginx-ingress
spec:
  type: LoadBalancer
  ports:
    - port: 80
      name: http
      nodePort: 32102
      protocol: TCP
  selector:
    k8s-app: nginx-ingress-lb
  externalIPs:
    - 172.23.162.232

[root@kctl-master kubectl]# 

To unsubscribe from this group and all its topics, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.

Rémon Sinnema

unread,
Aug 22, 2017, 1:39:32 AM8/22/17
to Kubernetes user discussion and Q&A
AFAIK, the VMWare cloud provider doesn't support LoadBalancer.
Reply all
Reply to author
Forward
0 new messages