Kubernetes Modify Container Command
- Edit the pod spec (e.g. in a deployment) and add/modify the
command
andargs
. For example:spec: containers: - name: ... command: ["/bin/sh"] args: ["-c", "sleep 300"]
command
and args
. For example:
spec:
containers:
- name: ...
command: ["/bin/sh"]
args: ["-c", "sleep 300"]