0

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!

2
  • Did you see this page? How exactly do you want setup your networking? I suppose you are using Calico, but please confirm. Jul 20, 2021 at 12:45
  • 1
    @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.
    – ITnewbie
    Jul 20, 2021 at 13:04

0

You must log in to answer this question.

Browse other questions tagged .