Kubernetes Modify Container Command

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