Closed fabriziofiorucci closed 3 years ago
Your summarization of the experience with the 3.13 release of Controller is correct. We are adding enhancements to Controller to better address your scenario - those will release in the next few months. Please reach out directly to me if you would like more details about this future capability. b dot ehlert at f5 dot com
Hi, I'm trying to figure out whether docker-nginx-controller can work under k8s as well. I have a k8s 1.19.1 cluster and a private registry.
I've built the ubuntu/no-nap image using:
pushed it to the private registry and started it with:
apparently the STORE_UUID=True build argument and the ENV_CONTROLLER_INSTANCE_NAME environment variable in the deployment should enable persistence across restarts.
What I see in the NGINX Controller (release 3.13), instead, is:
Under infrastructure - Instances the instance name is correctly reported as "nginxplus-quota", but in the instance properties we have:
"hostname" is set to the actual pod name
everything runs fine. Deleting and restarting the deployment, though, seems to break things: the instance name in the controller doesn't get updated with the new hostname and the nginx instance to controller communication doesn't seem to work. Pod logs report:
manually deleting the instance from the controller makes things work again, and pod logs report:
Any clue about this? Should I use a StatefulSet instead of a Deployment? In such a case the pod name would change anyway based on the replica size.
Thanks.