Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
428 views
in Technique[技术] by (71.8m points)

kubernetes - Can an Azure virtual machine scale set have a hidden public IP?

I have an AKS cluster with 2 nodepools (one was added later). My problem is that only the first nodepool (the one created with the cluster) has a public ip which can be found in azure portal (as a public ip resource). Is it possible to find the IP of the second nodepool somewhere in the portal? I know what the IP is because I pinged one of my servers from a pod running on that nodepool, but I need the resource (or at least it's ID). I also tried searching for it using azure resource explorer but I couldn't find anything related to it. Is it hidden?

Sorry if the question seems dumb. I hope I was clear enough.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You are probably dealing with an ephemeral external IP, so whenever there is no public ip attached to a vm it gets assigned an ephemeral one for outgoing comms. You can also read this article to get a better idea how to control that: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-connections


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...