Score:0

Assign pod an IP address which the same as the IP range of the k8s node

cn flag

Is that possible to assign pod an IP address which the same as the IP range of my K8s node?

For example:

I have an on-premise K8s cluster that includes 3 work nodes. All nodes are using the 10.138.1.0/24 IP range as INTERNAL-IP. It is the IP address of the server NIC.

Can I use the 10.138.1.100 IP address in my pod?

I am very new to K8s, any help is appreciated!

Mikołaj Głodziak avatar
id flag
Did you see [this page](https://kubernetes.io/docs/concepts/cluster-administration/networking/)? How exactly do you want setup your networking? I suppose you are using [Calico](https://docs.projectcalico.org/about/about-kubernetes-networking), but please confirm.
ITnewbie avatar
cn flag
@MikołajGłodziak Yes, I am using Calico plugin. I tried to find the solution from service or ingress but didn't find the same case as my requirement. BTW, I meant the INTERNAL-IP of the node, which means the IP address of the server NIC. Sorry for the confusion. I have edited the post.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.