# How to Force Change Pod IP

**URL:** <https://forums.suse.com/t/how-to-force-change-pod-ip/16260>\
**Category:** General\
**Created:** [January 9, 2020, 5:37pm UTC](https://forums.suse.com/t/how-to-force-change-pod-ip/16260 "2020-01-09T17:37:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akito](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/akito/32/5805_2.png) [@Akito](https://forums.suse.com/u/Akito)\
**Post date:** [January 9, 2020, 5:37pm UTC](https://forums.suse.com/t/how-to-force-change-pod-ip/16260/1 "2020-01-09T17:37:59Z")

</div>

I’d like to force change the Pod IP of a System workload in a custom cluster. Editing the YAML yields no change, as it instantly resets after edit.

How do I force a specific Pod IP address?

---

<div class="post-metadata">

**Author:** ![mattmattox](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mattmattox/32/5503_2.png) [@mattmattox](https://forums.suse.com/u/mattmattox)\
**Post date:** [January 9, 2020, 6:28pm UTC](https://forums.suse.com/t/how-to-force-change-pod-ip/16260/2 "2020-01-09T18:28:05Z")

</div>

So I would recommend looking at using a service IP.  
Because a static IP cannot be assigned to a Pod because of the dynamic nature of kubernetes’ IP layer.

Also, there is an open issue for this feature.

> <https://github.com/kubernetes/kubernetes/issues/28969>
>
> Most of the databases I (https://github.com/kubernetes/kubernetes/tree/master/test/e2e/testing-manifests/petset) and others (#28718 (comment)) have prototyped seem to handle DNS properly, but there are murmurs...

---

<div class="post-metadata">

**Author:** ![Akito](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/akito/32/5805_2.png) [@Akito](https://forums.suse.com/u/Akito)\
**Post date:** [January 9, 2020, 6:48pm UTC](https://forums.suse.com/t/how-to-force-change-pod-ip/16260/3 "2020-01-09T18:48:02Z")

</div>

Thanks for the information. However, my problem is not really about static IPs, but rather about the wrong IP being selected in the first place.

> [@Rancher Not Using Internal Address for Container Traffic](http://forums.suse.com/t/rancher-not-using-internal-address-for-container-traffic/15766/4):
>
> @JasonvanBrackel Nr. 1 is the IP address that is desired and that is set in the command starting the worker node, as shown below. Nr. 2 is the other IP address I do not want to be part of Rancher at all. The necessary setup for the network traffic is done outside of Rancher. All Rancher needs to do is using the first desired IP address, which is 10.1.1.2 in the below example. It should ignore the other address entirely and it should not show up in any YAMLs or anywhere…

So by force changing IPs I would at least want to see if the only issue remaining in the Cluster is the wrong IP. Since I could meanwhile work on a different issue, while the IP issue is not resolved, yet.

No matter what settings I change, no matter how I set up my node, e.g. `calico` always picks the IP address from the wrong interface (at least the only way that it could find out about the IP address is through an interface, or actually, it finds it out from the Node IP which is split into 2 different IP addresses, one being the selected and correct one, the other one being the one I want Rancher to ignore entirely, as seen in the above comment from the other thread.).
