Static Private IP Possible? #5230
-
I am currently supporting a team which is using the kubernetes-ingress (not plus) to set up ingress on services, and one of the issues we're come across is the private IP of the ingress pods can potentially change if the cluster reboots/updates - which breaks DNS resolution. We found some deprecated config values that seem to point to this - but nothing current. Is it possible to set a static private IP value for the ingress pods in the deployment. Setup:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @jordanabakerafs can you tell us more why you need to access to the pods via their IP but not via the Kubernetes service? When we deploy NGINX Ingress Controller on cloud environments, we can access the Ingress Controller through the load balancer provided by the cloud vendor, with the following kubectl command.
For details on how to get the external IP, please refer to our documentation. |
Beta Was this translation helpful? Give feedback.
Hi @jordanabakerafs,
I think you have found the correct annotation with that azure docs link.
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
I want to point out that the Ingress controller in those azure docs is the community ingress controller.
However this annotation will work for any ingress controller
If you are using helm you can add this annotation to the loadbalancer service in the NGINX Ingress Controller's helm chart
Let us know how you get on