Class V1.Container

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1.Container
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.ContainerOrBuilder, Serializable
Enclosing class:
V1

public static final class V1.Container extends com.google.protobuf.GeneratedMessageV3 implements V1.ContainerOrBuilder
 A single application container that you want to run within a pod.
 
Protobuf type k8s.io.api.core.v1.Container
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • IMAGE_FIELD_NUMBER

      public static final int IMAGE_FIELD_NUMBER
      See Also:
    • COMMAND_FIELD_NUMBER

      public static final int COMMAND_FIELD_NUMBER
      See Also:
    • ARGS_FIELD_NUMBER

      public static final int ARGS_FIELD_NUMBER
      See Also:
    • WORKINGDIR_FIELD_NUMBER

      public static final int WORKINGDIR_FIELD_NUMBER
      See Also:
    • PORTS_FIELD_NUMBER

      public static final int PORTS_FIELD_NUMBER
      See Also:
    • ENVFROM_FIELD_NUMBER

      public static final int ENVFROM_FIELD_NUMBER
      See Also:
    • ENV_FIELD_NUMBER

      public static final int ENV_FIELD_NUMBER
      See Also:
    • RESOURCES_FIELD_NUMBER

      public static final int RESOURCES_FIELD_NUMBER
      See Also:
    • VOLUMEMOUNTS_FIELD_NUMBER

      public static final int VOLUMEMOUNTS_FIELD_NUMBER
      See Also:
    • VOLUMEDEVICES_FIELD_NUMBER

      public static final int VOLUMEDEVICES_FIELD_NUMBER
      See Also:
    • LIVENESSPROBE_FIELD_NUMBER

      public static final int LIVENESSPROBE_FIELD_NUMBER
      See Also:
    • READINESSPROBE_FIELD_NUMBER

      public static final int READINESSPROBE_FIELD_NUMBER
      See Also:
    • STARTUPPROBE_FIELD_NUMBER

      public static final int STARTUPPROBE_FIELD_NUMBER
      See Also:
    • LIFECYCLE_FIELD_NUMBER

      public static final int LIFECYCLE_FIELD_NUMBER
      See Also:
    • TERMINATIONMESSAGEPATH_FIELD_NUMBER

      public static final int TERMINATIONMESSAGEPATH_FIELD_NUMBER
      See Also:
    • TERMINATIONMESSAGEPOLICY_FIELD_NUMBER

      public static final int TERMINATIONMESSAGEPOLICY_FIELD_NUMBER
      See Also:
    • IMAGEPULLPOLICY_FIELD_NUMBER

      public static final int IMAGEPULLPOLICY_FIELD_NUMBER
      See Also:
    • SECURITYCONTEXT_FIELD_NUMBER

      public static final int SECURITYCONTEXT_FIELD_NUMBER
      See Also:
    • STDIN_FIELD_NUMBER

      public static final int STDIN_FIELD_NUMBER
      See Also:
    • STDINONCE_FIELD_NUMBER

      public static final int STDINONCE_FIELD_NUMBER
      See Also:
    • TTY_FIELD_NUMBER

      public static final int TTY_FIELD_NUMBER
      See Also:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<V1.Container> PARSER
      Deprecated.
  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasName

      public boolean hasName()
       Name of the container specified as a DNS_LABEL.
       Each container in a pod must have a unique name (DNS_LABEL).
       Cannot be updated.
       
      optional string name = 1;
      Specified by:
      hasName in interface V1.ContainerOrBuilder
    • getName

      public String getName()
       Name of the container specified as a DNS_LABEL.
       Each container in a pod must have a unique name (DNS_LABEL).
       Cannot be updated.
       
      optional string name = 1;
      Specified by:
      getName in interface V1.ContainerOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the container specified as a DNS_LABEL.
       Each container in a pod must have a unique name (DNS_LABEL).
       Cannot be updated.
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface V1.ContainerOrBuilder
    • hasImage

      public boolean hasImage()
       Docker image name.
       More info: https://kubernetes.io/docs/concepts/containers/images
       This field is optional to allow higher level config management to default or override
       container images in workload controllers like Deployments and StatefulSets.
       +optional
       
      optional string image = 2;
      Specified by:
      hasImage in interface V1.ContainerOrBuilder
    • getImage

      public String getImage()
       Docker image name.
       More info: https://kubernetes.io/docs/concepts/containers/images
       This field is optional to allow higher level config management to default or override
       container images in workload controllers like Deployments and StatefulSets.
       +optional
       
      optional string image = 2;
      Specified by:
      getImage in interface V1.ContainerOrBuilder
    • getImageBytes

      public com.google.protobuf.ByteString getImageBytes()
       Docker image name.
       More info: https://kubernetes.io/docs/concepts/containers/images
       This field is optional to allow higher level config management to default or override
       container images in workload controllers like Deployments and StatefulSets.
       +optional
       
      optional string image = 2;
      Specified by:
      getImageBytes in interface V1.ContainerOrBuilder
    • getCommandList

      public com.google.protobuf.ProtocolStringList getCommandList()
       Entrypoint array. Not executed within a shell.
       The docker image's ENTRYPOINT is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       
      repeated string command = 3;
      Specified by:
      getCommandList in interface V1.ContainerOrBuilder
    • getCommandCount

      public int getCommandCount()
       Entrypoint array. Not executed within a shell.
       The docker image's ENTRYPOINT is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       
      repeated string command = 3;
      Specified by:
      getCommandCount in interface V1.ContainerOrBuilder
    • getCommand

      public String getCommand(int index)
       Entrypoint array. Not executed within a shell.
       The docker image's ENTRYPOINT is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       
      repeated string command = 3;
      Specified by:
      getCommand in interface V1.ContainerOrBuilder
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes(int index)
       Entrypoint array. Not executed within a shell.
       The docker image's ENTRYPOINT is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       
      repeated string command = 3;
      Specified by:
      getCommandBytes in interface V1.ContainerOrBuilder
    • getArgsList

      public com.google.protobuf.ProtocolStringList getArgsList()
       Arguments to the entrypoint.
       The docker image's CMD is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       
      repeated string args = 4;
      Specified by:
      getArgsList in interface V1.ContainerOrBuilder
    • getArgsCount

      public int getArgsCount()
       Arguments to the entrypoint.
       The docker image's CMD is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       
      repeated string args = 4;
      Specified by:
      getArgsCount in interface V1.ContainerOrBuilder
    • getArgs

      public String getArgs(int index)
       Arguments to the entrypoint.
       The docker image's CMD is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       
      repeated string args = 4;
      Specified by:
      getArgs in interface V1.ContainerOrBuilder
    • getArgsBytes

      public com.google.protobuf.ByteString getArgsBytes(int index)
       Arguments to the entrypoint.
       The docker image's CMD is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       
      repeated string args = 4;
      Specified by:
      getArgsBytes in interface V1.ContainerOrBuilder
    • hasWorkingDir

      public boolean hasWorkingDir()
       Container's working directory.
       If not specified, the container runtime's default will be used, which
       might be configured in the container image.
       Cannot be updated.
       +optional
       
      optional string workingDir = 5;
      Specified by:
      hasWorkingDir in interface V1.ContainerOrBuilder
    • getWorkingDir

      public String getWorkingDir()
       Container's working directory.
       If not specified, the container runtime's default will be used, which
       might be configured in the container image.
       Cannot be updated.
       +optional
       
      optional string workingDir = 5;
      Specified by:
      getWorkingDir in interface V1.ContainerOrBuilder
    • getWorkingDirBytes

      public com.google.protobuf.ByteString getWorkingDirBytes()
       Container's working directory.
       If not specified, the container runtime's default will be used, which
       might be configured in the container image.
       Cannot be updated.
       +optional
       
      optional string workingDir = 5;
      Specified by:
      getWorkingDirBytes in interface V1.ContainerOrBuilder
    • getPortsList

      public List<V1.ContainerPort> getPortsList()
       List of ports to expose from the container. Exposing a port here gives
       the system additional information about the network connections a
       container uses, but is primarily informational. Not specifying a port here
       DOES NOT prevent that port from being exposed. Any port which is
       listening on the default "0.0.0.0" address inside a container will be
       accessible from the network.
       Cannot be updated.
       +optional
       +patchMergeKey=containerPort
       +patchStrategy=merge
       +listType=map
       +listMapKey=containerPort
       +listMapKey=protocol
       
      repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
      Specified by:
      getPortsList in interface V1.ContainerOrBuilder
    • getPortsOrBuilderList

      public List<? extends V1.ContainerPortOrBuilder> getPortsOrBuilderList()
       List of ports to expose from the container. Exposing a port here gives
       the system additional information about the network connections a
       container uses, but is primarily informational. Not specifying a port here
       DOES NOT prevent that port from being exposed. Any port which is
       listening on the default "0.0.0.0" address inside a container will be
       accessible from the network.
       Cannot be updated.
       +optional
       +patchMergeKey=containerPort
       +patchStrategy=merge
       +listType=map
       +listMapKey=containerPort
       +listMapKey=protocol
       
      repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
      Specified by:
      getPortsOrBuilderList in interface V1.ContainerOrBuilder
    • getPortsCount

      public int getPortsCount()
       List of ports to expose from the container. Exposing a port here gives
       the system additional information about the network connections a
       container uses, but is primarily informational. Not specifying a port here
       DOES NOT prevent that port from being exposed. Any port which is
       listening on the default "0.0.0.0" address inside a container will be
       accessible from the network.
       Cannot be updated.
       +optional
       +patchMergeKey=containerPort
       +patchStrategy=merge
       +listType=map
       +listMapKey=containerPort
       +listMapKey=protocol
       
      repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
      Specified by:
      getPortsCount in interface V1.ContainerOrBuilder
    • getPorts

      public V1.ContainerPort getPorts(int index)
       List of ports to expose from the container. Exposing a port here gives
       the system additional information about the network connections a
       container uses, but is primarily informational. Not specifying a port here
       DOES NOT prevent that port from being exposed. Any port which is
       listening on the default "0.0.0.0" address inside a container will be
       accessible from the network.
       Cannot be updated.
       +optional
       +patchMergeKey=containerPort
       +patchStrategy=merge
       +listType=map
       +listMapKey=containerPort
       +listMapKey=protocol
       
      repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
      Specified by:
      getPorts in interface V1.ContainerOrBuilder
    • getPortsOrBuilder

      public V1.ContainerPortOrBuilder getPortsOrBuilder(int index)
       List of ports to expose from the container. Exposing a port here gives
       the system additional information about the network connections a
       container uses, but is primarily informational. Not specifying a port here
       DOES NOT prevent that port from being exposed. Any port which is
       listening on the default "0.0.0.0" address inside a container will be
       accessible from the network.
       Cannot be updated.
       +optional
       +patchMergeKey=containerPort
       +patchStrategy=merge
       +listType=map
       +listMapKey=containerPort
       +listMapKey=protocol
       
      repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
      Specified by:
      getPortsOrBuilder in interface V1.ContainerOrBuilder
    • getEnvFromList

      public List<V1.EnvFromSource> getEnvFromList()
       List of sources to populate environment variables in the container.
       The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       will be reported as an event when the container is starting. When a key exists in multiple
       sources, the value associated with the last source will take precedence.
       Values defined by an Env with a duplicate key will take precedence.
       Cannot be updated.
       +optional
       
      repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
      Specified by:
      getEnvFromList in interface V1.ContainerOrBuilder
    • getEnvFromOrBuilderList

      public List<? extends V1.EnvFromSourceOrBuilder> getEnvFromOrBuilderList()
       List of sources to populate environment variables in the container.
       The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       will be reported as an event when the container is starting. When a key exists in multiple
       sources, the value associated with the last source will take precedence.
       Values defined by an Env with a duplicate key will take precedence.
       Cannot be updated.
       +optional
       
      repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
      Specified by:
      getEnvFromOrBuilderList in interface V1.ContainerOrBuilder
    • getEnvFromCount

      public int getEnvFromCount()
       List of sources to populate environment variables in the container.
       The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       will be reported as an event when the container is starting. When a key exists in multiple
       sources, the value associated with the last source will take precedence.
       Values defined by an Env with a duplicate key will take precedence.
       Cannot be updated.
       +optional
       
      repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
      Specified by:
      getEnvFromCount in interface V1.ContainerOrBuilder
    • getEnvFrom

      public V1.EnvFromSource getEnvFrom(int index)
       List of sources to populate environment variables in the container.
       The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       will be reported as an event when the container is starting. When a key exists in multiple
       sources, the value associated with the last source will take precedence.
       Values defined by an Env with a duplicate key will take precedence.
       Cannot be updated.
       +optional
       
      repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
      Specified by:
      getEnvFrom in interface V1.ContainerOrBuilder
    • getEnvFromOrBuilder

      public V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(int index)
       List of sources to populate environment variables in the container.
       The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       will be reported as an event when the container is starting. When a key exists in multiple
       sources, the value associated with the last source will take precedence.
       Values defined by an Env with a duplicate key will take precedence.
       Cannot be updated.
       +optional
       
      repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
      Specified by:
      getEnvFromOrBuilder in interface V1.ContainerOrBuilder
    • getEnvList

      public List<V1.EnvVar> getEnvList()
       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.EnvVar env = 7;
      Specified by:
      getEnvList in interface V1.ContainerOrBuilder
    • getEnvOrBuilderList

      public List<? extends V1.EnvVarOrBuilder> getEnvOrBuilderList()
       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.EnvVar env = 7;
      Specified by:
      getEnvOrBuilderList in interface V1.ContainerOrBuilder
    • getEnvCount

      public int getEnvCount()
       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.EnvVar env = 7;
      Specified by:
      getEnvCount in interface V1.ContainerOrBuilder
    • getEnv

      public V1.EnvVar getEnv(int index)
       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.EnvVar env = 7;
      Specified by:
      getEnv in interface V1.ContainerOrBuilder
    • getEnvOrBuilder

      public V1.EnvVarOrBuilder getEnvOrBuilder(int index)
       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.EnvVar env = 7;
      Specified by:
      getEnvOrBuilder in interface V1.ContainerOrBuilder
    • hasResources

      public boolean hasResources()
       Compute Resources required by this container.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       +optional
       
      optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
      Specified by:
      hasResources in interface V1.ContainerOrBuilder
    • getResources

      public V1.ResourceRequirements getResources()
       Compute Resources required by this container.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       +optional
       
      optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
      Specified by:
      getResources in interface V1.ContainerOrBuilder
    • getResourcesOrBuilder

      public V1.ResourceRequirementsOrBuilder getResourcesOrBuilder()
       Compute Resources required by this container.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       +optional
       
      optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
      Specified by:
      getResourcesOrBuilder in interface V1.ContainerOrBuilder
    • getVolumeMountsList

      public List<V1.VolumeMount> getVolumeMountsList()
       Pod volumes to mount into the container's filesystem.
       Cannot be updated.
       +optional
       +patchMergeKey=mountPath
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
      Specified by:
      getVolumeMountsList in interface V1.ContainerOrBuilder
    • getVolumeMountsOrBuilderList

      public List<? extends V1.VolumeMountOrBuilder> getVolumeMountsOrBuilderList()
       Pod volumes to mount into the container's filesystem.
       Cannot be updated.
       +optional
       +patchMergeKey=mountPath
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
      Specified by:
      getVolumeMountsOrBuilderList in interface V1.ContainerOrBuilder
    • getVolumeMountsCount

      public int getVolumeMountsCount()
       Pod volumes to mount into the container's filesystem.
       Cannot be updated.
       +optional
       +patchMergeKey=mountPath
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
      Specified by:
      getVolumeMountsCount in interface V1.ContainerOrBuilder
    • getVolumeMounts

      public V1.VolumeMount getVolumeMounts(int index)
       Pod volumes to mount into the container's filesystem.
       Cannot be updated.
       +optional
       +patchMergeKey=mountPath
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
      Specified by:
      getVolumeMounts in interface V1.ContainerOrBuilder
    • getVolumeMountsOrBuilder

      public V1.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index)
       Pod volumes to mount into the container's filesystem.
       Cannot be updated.
       +optional
       +patchMergeKey=mountPath
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
      Specified by:
      getVolumeMountsOrBuilder in interface V1.ContainerOrBuilder
    • getVolumeDevicesList

      public List<V1.VolumeDevice> getVolumeDevicesList()
       volumeDevices is the list of block devices to be used by the container.
       +patchMergeKey=devicePath
       +patchStrategy=merge
       +optional
       
      repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
      Specified by:
      getVolumeDevicesList in interface V1.ContainerOrBuilder
    • getVolumeDevicesOrBuilderList

      public List<? extends V1.VolumeDeviceOrBuilder> getVolumeDevicesOrBuilderList()
       volumeDevices is the list of block devices to be used by the container.
       +patchMergeKey=devicePath
       +patchStrategy=merge
       +optional
       
      repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
      Specified by:
      getVolumeDevicesOrBuilderList in interface V1.ContainerOrBuilder
    • getVolumeDevicesCount

      public int getVolumeDevicesCount()
       volumeDevices is the list of block devices to be used by the container.
       +patchMergeKey=devicePath
       +patchStrategy=merge
       +optional
       
      repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
      Specified by:
      getVolumeDevicesCount in interface V1.ContainerOrBuilder
    • getVolumeDevices

      public V1.VolumeDevice getVolumeDevices(int index)
       volumeDevices is the list of block devices to be used by the container.
       +patchMergeKey=devicePath
       +patchStrategy=merge
       +optional
       
      repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
      Specified by:
      getVolumeDevices in interface V1.ContainerOrBuilder
    • getVolumeDevicesOrBuilder

      public V1.VolumeDeviceOrBuilder getVolumeDevicesOrBuilder(int index)
       volumeDevices is the list of block devices to be used by the container.
       +patchMergeKey=devicePath
       +patchStrategy=merge
       +optional
       
      repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
      Specified by:
      getVolumeDevicesOrBuilder in interface V1.ContainerOrBuilder
    • hasLivenessProbe

      public boolean hasLivenessProbe()
       Periodic probe of container liveness.
       Container will be restarted if the probe fails.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       +optional
       
      optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
      Specified by:
      hasLivenessProbe in interface V1.ContainerOrBuilder
    • getLivenessProbe

      public V1.Probe getLivenessProbe()
       Periodic probe of container liveness.
       Container will be restarted if the probe fails.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       +optional
       
      optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
      Specified by:
      getLivenessProbe in interface V1.ContainerOrBuilder
    • getLivenessProbeOrBuilder

      public V1.ProbeOrBuilder getLivenessProbeOrBuilder()
       Periodic probe of container liveness.
       Container will be restarted if the probe fails.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       +optional
       
      optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
      Specified by:
      getLivenessProbeOrBuilder in interface V1.ContainerOrBuilder
    • hasReadinessProbe

      public boolean hasReadinessProbe()
       Periodic probe of container service readiness.
       Container will be removed from service endpoints if the probe fails.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       +optional
       
      optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
      Specified by:
      hasReadinessProbe in interface V1.ContainerOrBuilder
    • getReadinessProbe

      public V1.Probe getReadinessProbe()
       Periodic probe of container service readiness.
       Container will be removed from service endpoints if the probe fails.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       +optional
       
      optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
      Specified by:
      getReadinessProbe in interface V1.ContainerOrBuilder
    • getReadinessProbeOrBuilder

      public V1.ProbeOrBuilder getReadinessProbeOrBuilder()
       Periodic probe of container service readiness.
       Container will be removed from service endpoints if the probe fails.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       +optional
       
      optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
      Specified by:
      getReadinessProbeOrBuilder in interface V1.ContainerOrBuilder
    • hasStartupProbe

      public boolean hasStartupProbe()
       StartupProbe indicates that the Pod has successfully initialized.
       If specified, no other probes are executed until this completes successfully.
       If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       when it might take a long time to load data or warm a cache, than during steady-state operation.
       This cannot be updated.
       More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       +optional
       
      optional .k8s.io.api.core.v1.Probe startupProbe = 22;
      Specified by:
      hasStartupProbe in interface V1.ContainerOrBuilder
    • getStartupProbe

      public V1.Probe getStartupProbe()
       StartupProbe indicates that the Pod has successfully initialized.
       If specified, no other probes are executed until this completes successfully.
       If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       when it might take a long time to load data or warm a cache, than during steady-state operation.
       This cannot be updated.
       More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       +optional
       
      optional .k8s.io.api.core.v1.Probe startupProbe = 22;
      Specified by:
      getStartupProbe in interface V1.ContainerOrBuilder
    • getStartupProbeOrBuilder

      public V1.ProbeOrBuilder getStartupProbeOrBuilder()
       StartupProbe indicates that the Pod has successfully initialized.
       If specified, no other probes are executed until this completes successfully.
       If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       when it might take a long time to load data or warm a cache, than during steady-state operation.
       This cannot be updated.
       More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       +optional
       
      optional .k8s.io.api.core.v1.Probe startupProbe = 22;
      Specified by:
      getStartupProbeOrBuilder in interface V1.ContainerOrBuilder
    • hasLifecycle

      public boolean hasLifecycle()
       Actions that the management system should take in response to container lifecycle events.
       Cannot be updated.
       +optional
       
      optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
      Specified by:
      hasLifecycle in interface V1.ContainerOrBuilder
    • getLifecycle

      public V1.Lifecycle getLifecycle()
       Actions that the management system should take in response to container lifecycle events.
       Cannot be updated.
       +optional
       
      optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
      Specified by:
      getLifecycle in interface V1.ContainerOrBuilder
    • getLifecycleOrBuilder

      public V1.LifecycleOrBuilder getLifecycleOrBuilder()
       Actions that the management system should take in response to container lifecycle events.
       Cannot be updated.
       +optional
       
      optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
      Specified by:
      getLifecycleOrBuilder in interface V1.ContainerOrBuilder
    • hasTerminationMessagePath

      public boolean hasTerminationMessagePath()
       Optional: Path at which the file to which the container's termination message
       will be written is mounted into the container's filesystem.
       Message written is intended to be brief final status, such as an assertion failure message.
       Will be truncated by the node if greater than 4096 bytes. The total message length across
       all containers will be limited to 12kb.
       Defaults to /dev/termination-log.
       Cannot be updated.
       +optional
       
      optional string terminationMessagePath = 13;
      Specified by:
      hasTerminationMessagePath in interface V1.ContainerOrBuilder
    • getTerminationMessagePath

      public String getTerminationMessagePath()
       Optional: Path at which the file to which the container's termination message
       will be written is mounted into the container's filesystem.
       Message written is intended to be brief final status, such as an assertion failure message.
       Will be truncated by the node if greater than 4096 bytes. The total message length across
       all containers will be limited to 12kb.
       Defaults to /dev/termination-log.
       Cannot be updated.
       +optional
       
      optional string terminationMessagePath = 13;
      Specified by:
      getTerminationMessagePath in interface V1.ContainerOrBuilder
    • getTerminationMessagePathBytes

      public com.google.protobuf.ByteString getTerminationMessagePathBytes()
       Optional: Path at which the file to which the container's termination message
       will be written is mounted into the container's filesystem.
       Message written is intended to be brief final status, such as an assertion failure message.
       Will be truncated by the node if greater than 4096 bytes. The total message length across
       all containers will be limited to 12kb.
       Defaults to /dev/termination-log.
       Cannot be updated.
       +optional
       
      optional string terminationMessagePath = 13;
      Specified by:
      getTerminationMessagePathBytes in interface V1.ContainerOrBuilder
    • hasTerminationMessagePolicy

      public boolean hasTerminationMessagePolicy()
       Indicate how the termination message should be populated. File will use the contents of
       terminationMessagePath to populate the container status message on both success and failure.
       FallbackToLogsOnError will use the last chunk of container log output if the termination
       message file is empty and the container exited with an error.
       The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       Defaults to File.
       Cannot be updated.
       +optional
       
      optional string terminationMessagePolicy = 20;
      Specified by:
      hasTerminationMessagePolicy in interface V1.ContainerOrBuilder
    • getTerminationMessagePolicy

      public String getTerminationMessagePolicy()
       Indicate how the termination message should be populated. File will use the contents of
       terminationMessagePath to populate the container status message on both success and failure.
       FallbackToLogsOnError will use the last chunk of container log output if the termination
       message file is empty and the container exited with an error.
       The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       Defaults to File.
       Cannot be updated.
       +optional
       
      optional string terminationMessagePolicy = 20;
      Specified by:
      getTerminationMessagePolicy in interface V1.ContainerOrBuilder
    • getTerminationMessagePolicyBytes

      public com.google.protobuf.ByteString getTerminationMessagePolicyBytes()
       Indicate how the termination message should be populated. File will use the contents of
       terminationMessagePath to populate the container status message on both success and failure.
       FallbackToLogsOnError will use the last chunk of container log output if the termination
       message file is empty and the container exited with an error.
       The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       Defaults to File.
       Cannot be updated.
       +optional
       
      optional string terminationMessagePolicy = 20;
      Specified by:
      getTerminationMessagePolicyBytes in interface V1.ContainerOrBuilder
    • hasImagePullPolicy

      public boolean hasImagePullPolicy()
       Image pull policy.
       One of Always, Never, IfNotPresent.
       Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       +optional
       
      optional string imagePullPolicy = 14;
      Specified by:
      hasImagePullPolicy in interface V1.ContainerOrBuilder
    • getImagePullPolicy

      public String getImagePullPolicy()
       Image pull policy.
       One of Always, Never, IfNotPresent.
       Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       +optional
       
      optional string imagePullPolicy = 14;
      Specified by:
      getImagePullPolicy in interface V1.ContainerOrBuilder
    • getImagePullPolicyBytes

      public com.google.protobuf.ByteString getImagePullPolicyBytes()
       Image pull policy.
       One of Always, Never, IfNotPresent.
       Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       +optional
       
      optional string imagePullPolicy = 14;
      Specified by:
      getImagePullPolicyBytes in interface V1.ContainerOrBuilder
    • hasSecurityContext

      public boolean hasSecurityContext()
       SecurityContext defines the security options the container should be run with.
       If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       +optional
       
      optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
      Specified by:
      hasSecurityContext in interface V1.ContainerOrBuilder
    • getSecurityContext

      public V1.SecurityContext getSecurityContext()
       SecurityContext defines the security options the container should be run with.
       If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       +optional
       
      optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
      Specified by:
      getSecurityContext in interface V1.ContainerOrBuilder
    • getSecurityContextOrBuilder

      public V1.SecurityContextOrBuilder getSecurityContextOrBuilder()
       SecurityContext defines the security options the container should be run with.
       If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       +optional
       
      optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
      Specified by:
      getSecurityContextOrBuilder in interface V1.ContainerOrBuilder
    • hasStdin

      public boolean hasStdin()
       Whether this container should allocate a buffer for stdin in the container runtime. If this
       is not set, reads from stdin in the container will always result in EOF.
       Default is false.
       +optional
       
      optional bool stdin = 16;
      Specified by:
      hasStdin in interface V1.ContainerOrBuilder
    • getStdin

      public boolean getStdin()
       Whether this container should allocate a buffer for stdin in the container runtime. If this
       is not set, reads from stdin in the container will always result in EOF.
       Default is false.
       +optional
       
      optional bool stdin = 16;
      Specified by:
      getStdin in interface V1.ContainerOrBuilder
    • hasStdinOnce

      public boolean hasStdinOnce()
       Whether the container runtime should close the stdin channel after it has been opened by
       a single attach. When stdin is true the stdin stream will remain open across multiple attach
       sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       at which time stdin is closed and remains closed until the container is restarted. If this
       flag is false, a container processes that reads from stdin will never receive an EOF.
       Default is false
       +optional
       
      optional bool stdinOnce = 17;
      Specified by:
      hasStdinOnce in interface V1.ContainerOrBuilder
    • getStdinOnce

      public boolean getStdinOnce()
       Whether the container runtime should close the stdin channel after it has been opened by
       a single attach. When stdin is true the stdin stream will remain open across multiple attach
       sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       at which time stdin is closed and remains closed until the container is restarted. If this
       flag is false, a container processes that reads from stdin will never receive an EOF.
       Default is false
       +optional
       
      optional bool stdinOnce = 17;
      Specified by:
      getStdinOnce in interface V1.ContainerOrBuilder
    • hasTty

      public boolean hasTty()
       Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       Default is false.
       +optional
       
      optional bool tty = 18;
      Specified by:
      hasTty in interface V1.ContainerOrBuilder
    • getTty

      public boolean getTty()
       Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       Default is false.
       +optional
       
      optional bool tty = 18;
      Specified by:
      getTty in interface V1.ContainerOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1.Container parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.Container parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.Container parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.Container parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.Container parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.Container parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.Container parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.Container parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.Container parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.Container parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.Container parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1.Container.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1.Container.Builder newBuilder()
    • newBuilder

      public static V1.Container.Builder newBuilder(V1.Container prototype)
    • toBuilder

      public V1.Container.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1.Container.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1.Container getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1.Container> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1.Container> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public V1.Container getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder