Job

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

      • seLinuxOptions SELinuxOptions

      • fsGroup integer

      • runAsNonRoot boolean

    • subdomain string

    • terminationGracePeriodSeconds integer

    • volumes Volume array

  • Not Support

    • automountServiceAccountToken boolean

    • deprecatedServiceAccount string

    • dnsPolicy string

    • dnsConfig PodDNSConfig

    • hostNetwork boolean

    • hostPID boolean

    • hostIPC boolean

    • nodeName string

    • priorityClassName string

    • priority integer

    • schedulerName string

    • serviceAccountName string

    • tolerations Toleration 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

      • capabilities Capabilities

      • privileged boolean

      • runAsUser integer

      • seLinuxOptions SELinuxOptions

    • stdin boolean

    • stdinOnce boolean

    • terminationMessagePath string

    • terminationMessagePolicy string

    • tty boolean

    • volumeMounts VolumeMount array

      • name string

      • readOnly boolean

      • mountPath string

      • subPath string

      • mountPropagation MountPropagationMode

    • workingDir string

FlexVolumeSource

FlexVolumeSource Properties:

  • Support

    • options object

      • volumeID string (volume name)

    • readOnly boolean

    • secretRef LocalObjectReference

  • Not Support

    • driver string

    • fsType string

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