Poisonous John (Ivan Fateev) in this scenario you’ll probably need to create a Service type LoadBalancer, using an internal IP. This service will give you an IP that will be accessible only from inside the cloud, and will load balance between the pods. This service IP won’t change even after scaling the cluster nodes, and so, its pods.

A caveat of this is that it depends on each cloud provider, so whilst this option is available on GCP, it may not be available in others.

Written by

Technology enthusiast. Less is more.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store