<p>On doing K8s updates on GCP we lose the link between the nodes and their external IPs. That causes some issues afterwards on K8s apps communicating with other clouds secured by firewalls. </p>

<p>I have to assign them manually afterwards again. Why is this? Can I prevent this somehow? </p>

<p>First of all, ensure you have set your IP to static in the cloud console -> Networking -> External IP addresses.</p>

<p>Once it's set to static you can assign your Service to the static IP using the <code>loadBalancerIP</code> property. Note that your Service should be a LoadBalancer type. See <a href="https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer</a> for more information.</p>

<p>If you don't require a Loadbalancer you could also try out <a href="https://kubernetes.io/docs/concepts/services-networking/service/#external-ips" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/service/#external-ips</a></p>
