简体   繁体   English

如何在 vmware 中暴露 ip 地址之外

[英]How to expose outside an ip address in vmware

I have an ip address which is assigned by metallb to a service in k8s.我有一个 ip 地址,由 metallb 分配给 k8s 中的服务。 I use vmware with vsphere.我将vmware与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.外部无法访问外部 ip。 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.我不想将与虚拟机的 ip 相同的 ip 设置为外部 ip。

Either you go for a public IP or you use some HAProxy or similar as mentioned here您可以为公共 IP 使用 go,或者使用此处提到的一些HAProxy或类似的

This is particularly suitable for private Kubernetes clusters where none of the nodes has a public IP address.这特别适用于没有节点具有公共 IP 地址的私有 Kubernetes 集群。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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