I have a bash script in a Docker image to which I can pass a command line argument through docker run
(having specified the bash script in ENTRYPOINT
and a default parameter in CMD
like in this answer). So I would run something like
docker run my_docker_test argument_1
Now I would like to deploy multiple (ca. 50) containers to OpenShift or Kubernetes, each with a different value of the argument. I understand that in Kubernetes I could specify the command
and args
in the object configuration yaml file. Is there a possibility to pass the argument directly from the command line like in docker run
, e.g. passing to kubectl
or oc
, without the need to create a new yaml file each time I want to change the value of the argument?