> In production can I use this or is there a security hole in there?
What if there's a bug in nginx? That has a lot more lines of code than the controller code. As always, feel free to audit the code, but as with any environment to eventually have to trust someone's code.
> What if the ports the health check are using overlap with other ports I have assigned somewhere else?
Each container can bind to every port, only those that are exposed can conflict. (Similar to how docker works).
Honestly, kubernetes might not solve your use case. I use it because it solves mine (Self-healing, declarative configuring that works seamlessly across multiple nodes - aka accessing multiple nodes as one big computer).
What if there's a bug in nginx? That has a lot more lines of code than the controller code. As always, feel free to audit the code, but as with any environment to eventually have to trust someone's code.
> What if the ports the health check are using overlap with other ports I have assigned somewhere else?
Each container can bind to every port, only those that are exposed can conflict. (Similar to how docker works).
Honestly, kubernetes might not solve your use case. I use it because it solves mine (Self-healing, declarative configuring that works seamlessly across multiple nodes - aka accessing multiple nodes as one big computer).