简体   繁体   English

设置不同的kubernetes集群

[英]Setup different kubernetes cluster

I created an azure kubernetes cluster via "az acs create". 我通过“ az acs create”创建了一个天蓝色的kubernetes集群。 I exec an existing POD 我执行一个现有的POD

kubectl exec -it mypod /bin/bash

and make a curl http://myexternlip.com/raw The IP I get is the public ip address of the k8s-agents... So far so good. 并卷曲一下http://myexternlip.com/raw我得到的IP是k8s-agents的公共IP地址。

Now I create an azure kubernetes cluster via "acs-engine". 现在,我通过“ acs-engine”创建了一个天蓝色的kubernetes集群。 Make the same "exec" as above-mentioned... Now I can't find the IP in any azure component. 进行与上述相同的“ exec” ...现在,我无法在任何azure组件中找到IP。 Neither in the agents, nor in the load balancers. 既不在代理中,也不在负载平衡器中。 Where is this IP configured? 该IP在哪里配置?

Regards, saromba 此致saromba

This should have the information you're looking for: 这应该包含您要查找的信息:

https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container-service-kubernetes-load-balancing https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container-service-kubernetes-load-balancing

In short, when you expose a service with type=loadbalancer, ACS creates a Public IP address resource that K8S uses. 简而言之,当您使用type = loadbalancer公开服务时,ACS会创建K8S使用的公共IP地址资源。

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

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