简体   繁体   中英

How to expose outside an ip address in vmware

I have an ip address which is assigned by metallb to a service in k8s. I use vmware with vsphere.

NAME                                 TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)                      AGE
ingress-nginx-controller             LoadBalancer   10.99.151.233    10.133.2.21   80:31981/TCP,443:30293/TCP   6d23h

The external ip can not be accessed by outside. What can I do in order make it accessible from outside? I don't want to set the same ip as the vm's ip as external ip.

Either you go for a public IP or you use some HAProxy or similar as mentioned here

This is particularly suitable for private Kubernetes clusters where none of the nodes has a public IP address.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM