We are using Helm Chart for deploying out application in Kubernetes cluster.
We have a statefulsets and headless service. To initialize mTLS, we have created a 'job' kind and in 'command' we are passing shell & python scripts are an arguments. And created a 'cronjob' kind to update of certificate.
We have written a 'docker-entrypoint.sh' inside 'docker image' for some initialization work & to generate TLS certificates.
Questions to ask :
- Who (Helm Chart/ Kubernetes) take care of scaling/monitoring/restarting containers ?
- Does it deploy new docker image if pod fails/restarts ?
- Will docker ENTRYPOINT execute after container fails/restarts ?
- Does 'job' & 'cronjob' execute if container restarts ?
What are the other steps taken by Kubernetes ? Would you also share container insights ?