CmdID

CmdID / kubectl

kubectl run

Run a particular image on the cluster kubectl reference

35 options Its page in the kubectl reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

35 in the kubectl reference
Show its 35 options
--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template.
--annotationsAnnotations to apply to the pod.
--attachIf true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called.
--cascadeMust be "background", "orphan", or "foreground".
--commandIf true and extra arguments are present, use them as the 'command' field in the container, rather than the 'args' field which is the default.
--detach-keysOverride the key sequence for detaching a container.
--dry-runMust be "none", "server", or "client".
--envEnvironment variables to set in the container.
--exposeIf true, create a ClusterIP service associated with the pod.
--field-managerName of the manager used to track field ownership.
--forceIf true, immediately remove resources from API and bypass graceful deletion.
--grace-periodPeriod of time in seconds given to the resource to terminate gracefully.
--help, -hhelp for run
--image-pull-policyThe image pull policy for the container.
--imageThe image for the container to run.
--kustomize, -kProcess a kustomization directory.
--labels, -lComma separated labels to apply to the pod.
--leave-stdin-openIf the pod is started in interactive mode or with stdin, leave stdin open after the first attach completes.
--output, -oOutput format.
--override-typeThe method used to override the generated object: json, merge, or strategic.
--overridesAn inline JSON override for the generated object.
--pod-running-timeoutThe length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running
--portThe port that this container exposes.
--privilegedIf true, run the container in privileged mode.
--quiet, -qIf true, suppress prompt messages.
--recursive, -RProcess the directory used in -f, --filename recursively.
--restartThe restart policy for this Pod.
--rmIf true, delete the pod after it exits.
--save-configIf true, the configuration of current object will be saved in its annotation.
--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.
--stdin, -iKeep stdin open on the container in the pod, even if nothing is attached.
--templateTemplate string or path to template file to use when -o=go-template, -o=go-template-file.
--timeoutThe length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object
--tty, -tAllocate a TTY for the container in the pod.
--waitIf true, wait for resources to be gone before returning.