Add parameters for interactive containers. Useful with kubectl attach.

This commit is contained in:
Brendan Burns
2015-07-29 21:16:54 -07:00
parent 769230e735
commit 51757f6552
8 changed files with 7046 additions and 8089 deletions

View File

@@ -726,6 +726,11 @@ type Container struct {
ImagePullPolicy PullPolicy `json:"imagePullPolicy"`
// Optional: SecurityContext defines the security options the pod should be run with
SecurityContext *SecurityContext `json:"securityContext,omitempty"`
// Variables for interactive containers, these have very specialized use-cases (e.g. debugging)
// and shouldn't be used for general purpose containers.
Stdin bool `json:"stdin,omitempty" description:"Whether this container should allocate a buffer for stdin in the container runtime; default is false"`
TTY bool `json:"tty,omitempty" description:"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true; default is false"`
}
// Handler defines a specific action that should be taken