I am looking to use a canary deployment in GKE. What I have is the following:
The issue is when I try to create a configuration for the canary ingress in the canary namespace. What appears to happen is that it does not use the static IP and instead tries to be assigned a new one.
Is it possible to use canary deployments with NGINX in GKE with static IPs?
You can find a workaround for this in the StackOverflow thread here or by following the steps outlined in the official Kubernetes Github account to use static IP for your canary deployment in GKE. Bear in mind that you need a TLS cert and to make sure your Ingress targets exactly one Ingress controller by specifying the ingress.class annotation, and that you have an ingress controller running in your cluster.