ExecAction
ExecAction describes a "run in container" action.
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.
Last modified January 19, 2021 at 8:51 PM PST:
New API Reference presentation on /content/en/docs/reference/kubernetes-api (add24db3e)
© 2022 The Kubernetes Authors | Documentation Distributed under CC BY 4.0
Copyright © 2022 The Linux Foundation ®. All rights reserved.
https://v1-20.docs.kubernetes.io/docs/reference/kubernetes-api/common-definitions/exec-action/