Pod
Group | Version | Kind |
Core | v1 | Pod |
Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.
METHOD
Reference:
Pod
PodSpec
PodSpec Properties:
Supported
activeDeadlineSeconds integer
affinity Affinity
containers Container array
hostAliases HostAlias array
hostname string
imagePullSecrets LocalObjectReference array
initContainers Container array
nodeSelector object
restartPolicy string
securityContext PodSecurityContext
runAsUser integer
supplementalGroups integer array
seLinuxOptionsSELinuxOptionsfsGroupintegerrunAsNonRootboolean
subdomain string
terminationGracePeriodSeconds integer
volumes Volume array
Not Support
automountServiceAccountTokenbooleandeprecatedServiceAccountstringdnsPolicystringdnsConfigPodDNSConfighostNetworkbooleanhostPIDbooleanhostIPCbooleannodeNamestringpriorityClassNamestringpriorityintegerschedulerNamestringserviceAccountNamestringtolerationsToleration array
Container
Container Properties:
Supported
args string array
command string array
env EnvVar array
envFrom EnvFromSource array
image string
imagePullPolicy string
lifecycle Lifecycle
livenessProbe Probe
name string
ports ContainerPort array
readinessProbe Probe
resources ResourceRequirements
securityContext SecurityContext
allowPrivilegeEscalation boolean
readOnlyRootFilesystem boolean
runAsNonRoot boolean
capabilitiesCapabilitiesprivilegedbooleanrunAsUserintegerseLinuxOptionsSELinuxOptions
stdin boolean
stdinOnce boolean
terminationMessagePath string
terminationMessagePolicy string
tty boolean
volumeMounts VolumeMount array
name string
readOnly boolean
mountPath string
subPath string
mountPropagationMountPropagationMode
workingDir string
FlexVolumeSource
FlexVolumeSource Properties:
Support
options object
volumeID string (
volume name
)
readOnly boolean
secretRef LocalObjectReference
Not Support
driverstringfsTypestring
PodList
DeleteOptions
PodExecConfig
Field | Type | Description |
tty | bool | allocate a pseudo-TTY |
attachStdin | bool | Attach the standard input, makes possible user interaction |
attachStderr | bool | Attach the standard output |
attachStdout | bool | Attach the standard error |
cmd | string array | command to run |
PodExecCreateResponse
Field | Type | Description |
Id | bool | id of exec process |
Last updated