You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubectl run has a --pod-running-timeout flag which controls how long kubectl waits for the pod to enter running state. The default is 1 minute which is not always realistic since sometimes it can take longer than that, for example, if the Docker image is very large, or Kubernetes cluster scale-up is required, etc.
Here's what happens when the timeout is reached, using a 1 second timeout as an example:
$ kubectl run -it --pod-running-timeout=1s --image=busybox --rm test sh
pod "test" deleted
error: timed out waiting for the condition
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.16", GitCommit:"e37e4ab4cc8dcda84f1344dda47a97bb1927d074", GitTreeState:"clean", BuildDate:"2021-10-27T16:25:59Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.16", GitCommit:"e37e4ab4cc8dcda84f1344dda47a97bb1927d074", GitTreeState:"clean", BuildDate:"2021-10-27T16:20:18Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
This issue requests that the flag be configurable through hokusai staging/production run ... commands. Currently it is not configurable.
$ hokusai staging run --help
Usage: hokusai staging run [OPTIONS] COMMAND
Launch a new container and run a command
Options:
--tty Attach the terminal
--tag TEXT The image tag to run (defaults to "staging")
--env TEXT Environment variables in the form of "KEY=VALUE"
--constraint TEXT Constrain command to run on nodes matching labels in the form of "key=value"
-v, --verbose Verbose output
-h, --help Show this message and exit.
kubectl run
has a--pod-running-timeout
flag which controls how longkubectl
waits for the pod to enter running state. The default is 1 minute which is not always realistic since sometimes it can take longer than that, for example, if the Docker image is very large, or Kubernetes cluster scale-up is required, etc.Here's what happens when the timeout is reached, using a 1 second timeout as an example:
This issue requests that the flag be configurable through
hokusai staging/production run ...
commands. Currently it is not configurable.And the call to
kubectl
leaves the flag at default.The text was updated successfully, but these errors were encountered: