Kubernetes 101 : Overriding the ENTRYPOINT and CMD - Dockerfile - of an image in kubernetes
When we run an image , the ENTRYPOINT - command - and the CMD - arguments of the command - of the dockerfile , is the first instruction that gets executed.
For example, we have the below dockerfile:
- ENTRYPOINT : is the command that is executed inside the container, when it is started.
- CMD : are the arguments passed to the command.
We could override the ENTRYPOINT and its CMD arguments in the Yaml file of the pod.
In order to do that, we set the properties "command" and "args" in the container's parameters, as shown in the below Yaml file of the pod: