简体   繁体   English

如何将Googlecloud中的弹性kubernetes集群暴露给外部ip?

[英]How to expose elastic kubernetes cluster in Googlecloud to external ip?

I have setup a kubernetes cluster of elasticsearch in GCP. 我已经在GCP中设置了Elasticsearch的kubernetes集群。

kubectl get svc

gives me 给我

NAME                                     TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)             AGE
ipgram-elasticsearch-elasticsearch-svc   ClusterIP   10.27.247.26   <none>        9200/TCP,9300/TCP   2h

How to set an external IP for this ? 如何为此设置外部IP?

您必须将服务转换为LoadBalancer类型,这将为LB或NodePort分配一个外部IP,然后使用节点IP。

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

相关问题 AWS Elastic Kubernetes 服务:如何将容器/pod 公开到 AWS 内的 Elasticsearch 集群? - AWS Elastic Kubernetes Service: how to expose a container/pod to an Elasticsearch cluster inside AWS? Kubernetes集群与VM上的弹性搜索集群 - Elastic search cluster on Kubernetes Cluster vs VM 没有为弹性生成外部IP - external IP not being generated for elastic 为外部客户端连接设置 Cassandra listen_address 时,如何避免弹性 IP 转换为私有 IP? - How to avoid Elastic IP translation to private IP when setting Cassandra listen_address for external client connection? 使用无法访问的集群IP的kubernetes api - kubernetes api using an unreachable cluster IP 如何将我的Kibana pod连接到Kubernetes中的Elastic集群 - How can I connect my Kibana pod to my Elastic cluster in Kubernetes 如何将我的 Elastic Search 服务器公开到 Internet? - How to expose my Elastic Search server to the internet? 如何更改弹性簇名称 - How to change elastic cluster name 将 ElasticSearch 迁移到 Kubernetes 上的弹性集群,是否有可能将一些传入流量发送到 ECK 集群? - Migrating ElasticSearch to Elastic cluster on Kubernetes, is there is possible way to send some of the incoming traffic to ECK cluster? 如何在 kubernetes 中使用 VPA 自动缩放弹性搜索? - How to autoscale elastic search using VPA in kubernetes?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM