Files
website/content/en/docs/reference/kubernetes-api/common-definitions/exec-action.md
T
Tim Bannister 8dbf6671db Omit API reference updates for v1.21
Omitting this merge to make it easier to merge in from primary branch
and back in to the same primary branch.
2021-04-06 19:39:36 +01:00

739 B

api_metadata, content_type, description, title, weight
api_metadata content_type description title weight
apiVersion import kind
k8s.io/api/core/v1 ExecAction
api_reference ExecAction describes a "run in container" action. ExecAction 3

import "k8s.io/api/core/v1"

ExecAction describes a "run in container" action.


  • command ([]string)

    Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.