Package k8s.io.api.core.v1
Interface Generated.ContainerOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.Container,Generated.Container.Builder
- Enclosing class:
- Generated
public static interface Generated.ContainerOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetArgs(int index)Arguments to the entrypoint.com.google.protobuf.ByteStringgetArgsBytes(int index)Arguments to the entrypoint.intgetArgsCount()Arguments to the entrypoint.List<String>getArgsList()Arguments to the entrypoint.StringgetCommand(int index)Entrypoint array.com.google.protobuf.ByteStringgetCommandBytes(int index)Entrypoint array.intgetCommandCount()Entrypoint array.List<String>getCommandList()Entrypoint array.Generated.EnvVargetEnv(int index)List of environment variables to set in the container.intgetEnvCount()List of environment variables to set in the container.Generated.EnvFromSourcegetEnvFrom(int index)List of sources to populate environment variables in the container.intgetEnvFromCount()List of sources to populate environment variables in the container.List<Generated.EnvFromSource>getEnvFromList()List of sources to populate environment variables in the container.Generated.EnvFromSourceOrBuildergetEnvFromOrBuilder(int index)List of sources to populate environment variables in the container.List<? extends Generated.EnvFromSourceOrBuilder>getEnvFromOrBuilderList()List of sources to populate environment variables in the container.List<Generated.EnvVar>getEnvList()List of environment variables to set in the container.Generated.EnvVarOrBuildergetEnvOrBuilder(int index)List of environment variables to set in the container.List<? extends Generated.EnvVarOrBuilder>getEnvOrBuilderList()List of environment variables to set in the container.StringgetImage()Container image name.com.google.protobuf.ByteStringgetImageBytes()Container image name.StringgetImagePullPolicy()Image pull policy.com.google.protobuf.ByteStringgetImagePullPolicyBytes()Image pull policy.Generated.LifecyclegetLifecycle()Actions that the management system should take in response to container lifecycle events.Generated.LifecycleOrBuildergetLifecycleOrBuilder()Actions that the management system should take in response to container lifecycle events.Generated.ProbegetLivenessProbe()Periodic probe of container liveness.Generated.ProbeOrBuildergetLivenessProbeOrBuilder()Periodic probe of container liveness.StringgetName()Name of the container specified as a DNS_LABEL.com.google.protobuf.ByteStringgetNameBytes()Name of the container specified as a DNS_LABEL.Generated.ContainerPortgetPorts(int index)List of ports to expose from the container.intgetPortsCount()List of ports to expose from the container.List<Generated.ContainerPort>getPortsList()List of ports to expose from the container.Generated.ContainerPortOrBuildergetPortsOrBuilder(int index)List of ports to expose from the container.List<? extends Generated.ContainerPortOrBuilder>getPortsOrBuilderList()List of ports to expose from the container.Generated.ProbegetReadinessProbe()Periodic probe of container service readiness.Generated.ProbeOrBuildergetReadinessProbeOrBuilder()Periodic probe of container service readiness.Generated.ContainerResizePolicygetResizePolicy(int index)Resources resize policy for the container.intgetResizePolicyCount()Resources resize policy for the container.List<Generated.ContainerResizePolicy>getResizePolicyList()Resources resize policy for the container.Generated.ContainerResizePolicyOrBuildergetResizePolicyOrBuilder(int index)Resources resize policy for the container.List<? extends Generated.ContainerResizePolicyOrBuilder>getResizePolicyOrBuilderList()Resources resize policy for the container.Generated.ResourceRequirementsgetResources()Compute Resources required by this container.Generated.ResourceRequirementsOrBuildergetResourcesOrBuilder()Compute Resources required by this container.StringgetRestartPolicy()RestartPolicy defines the restart behavior of individual containers in a pod.com.google.protobuf.ByteStringgetRestartPolicyBytes()RestartPolicy defines the restart behavior of individual containers in a pod.Generated.SecurityContextgetSecurityContext()SecurityContext defines the security options the container should be run with.Generated.SecurityContextOrBuildergetSecurityContextOrBuilder()SecurityContext defines the security options the container should be run with.Generated.ProbegetStartupProbe()StartupProbe indicates that the Pod has successfully initialized.Generated.ProbeOrBuildergetStartupProbeOrBuilder()StartupProbe indicates that the Pod has successfully initialized.booleangetStdin()Whether this container should allocate a buffer for stdin in the container runtime.booleangetStdinOnce()Whether the container runtime should close the stdin channel after it has been opened by a single attach.StringgetTerminationMessagePath()Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem.com.google.protobuf.ByteStringgetTerminationMessagePathBytes()Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem.StringgetTerminationMessagePolicy()Indicate how the termination message should be populated.com.google.protobuf.ByteStringgetTerminationMessagePolicyBytes()Indicate how the termination message should be populated.booleangetTty()Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.Generated.VolumeDevicegetVolumeDevices(int index)volumeDevices is the list of block devices to be used by the container.intgetVolumeDevicesCount()volumeDevices is the list of block devices to be used by the container.List<Generated.VolumeDevice>getVolumeDevicesList()volumeDevices is the list of block devices to be used by the container.Generated.VolumeDeviceOrBuildergetVolumeDevicesOrBuilder(int index)volumeDevices is the list of block devices to be used by the container.List<? extends Generated.VolumeDeviceOrBuilder>getVolumeDevicesOrBuilderList()volumeDevices is the list of block devices to be used by the container.Generated.VolumeMountgetVolumeMounts(int index)Pod volumes to mount into the container's filesystem.intgetVolumeMountsCount()Pod volumes to mount into the container's filesystem.List<Generated.VolumeMount>getVolumeMountsList()Pod volumes to mount into the container's filesystem.Generated.VolumeMountOrBuildergetVolumeMountsOrBuilder(int index)Pod volumes to mount into the container's filesystem.List<? extends Generated.VolumeMountOrBuilder>getVolumeMountsOrBuilderList()Pod volumes to mount into the container's filesystem.StringgetWorkingDir()Container's working directory.com.google.protobuf.ByteStringgetWorkingDirBytes()Container's working directory.booleanhasImage()Container image name.booleanhasImagePullPolicy()Image pull policy.booleanhasLifecycle()Actions that the management system should take in response to container lifecycle events.booleanhasLivenessProbe()Periodic probe of container liveness.booleanhasName()Name of the container specified as a DNS_LABEL.booleanhasReadinessProbe()Periodic probe of container service readiness.booleanhasResources()Compute Resources required by this container.booleanhasRestartPolicy()RestartPolicy defines the restart behavior of individual containers in a pod.booleanhasSecurityContext()SecurityContext defines the security options the container should be run with.booleanhasStartupProbe()StartupProbe indicates that the Pod has successfully initialized.booleanhasStdin()Whether this container should allocate a buffer for stdin in the container runtime.booleanhasStdinOnce()Whether the container runtime should close the stdin channel after it has been opened by a single attach.booleanhasTerminationMessagePath()Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem.booleanhasTerminationMessagePolicy()Indicate how the termination message should be populated.booleanhasTty()Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.booleanhasWorkingDir()Container's working directory.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasName
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;- Returns:
- Whether the name field is set.
-
getName
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;- Returns:
- The name.
-
getNameBytes
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;- Returns:
- The bytes for name.
-
hasImage
boolean hasImage()
Container 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;- Returns:
- Whether the image field is set.
-
getImage
String getImage()
Container 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;- Returns:
- The image.
-
getImageBytes
com.google.protobuf.ByteString getImageBytes()
Container 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;- Returns:
- The bytes for image.
-
getCommandList
List<String> getCommandList()
Entrypoint array. Not executed within a shell. The container 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 +listType=atomic
repeated string command = 3;- Returns:
- A list containing the command.
-
getCommandCount
int getCommandCount()
Entrypoint array. Not executed within a shell. The container 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 +listType=atomic
repeated string command = 3;- Returns:
- The count of command.
-
getCommand
String getCommand(int index)
Entrypoint array. Not executed within a shell. The container 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 +listType=atomic
repeated string command = 3;- Parameters:
index- The index of the element to return.- Returns:
- The command at the given index.
-
getCommandBytes
com.google.protobuf.ByteString getCommandBytes(int index)
Entrypoint array. Not executed within a shell. The container 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 +listType=atomic
repeated string command = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the command at the given index.
-
getArgsList
List<String> getArgsList()
Arguments to the entrypoint. The container 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 +listType=atomic
repeated string args = 4;- Returns:
- A list containing the args.
-
getArgsCount
int getArgsCount()
Arguments to the entrypoint. The container 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 +listType=atomic
repeated string args = 4;- Returns:
- The count of args.
-
getArgs
String getArgs(int index)
Arguments to the entrypoint. The container 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 +listType=atomic
repeated string args = 4;- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
com.google.protobuf.ByteString getArgsBytes(int index)
Arguments to the entrypoint. The container 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 +listType=atomic
repeated string args = 4;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
hasWorkingDir
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;- Returns:
- Whether the workingDir field is set.
-
getWorkingDir
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;- Returns:
- The workingDir.
-
getWorkingDirBytes
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;- Returns:
- The bytes for workingDir.
-
getPortsList
List<Generated.ContainerPort> getPortsList()
List of ports to expose from the container. 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. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol
repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
-
getPorts
Generated.ContainerPort getPorts(int index)
List of ports to expose from the container. 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. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol
repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
-
getPortsCount
int getPortsCount()
List of ports to expose from the container. 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. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol
repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
-
getPortsOrBuilderList
List<? extends Generated.ContainerPortOrBuilder> getPortsOrBuilderList()
List of ports to expose from the container. 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. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol
repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
-
getPortsOrBuilder
Generated.ContainerPortOrBuilder getPortsOrBuilder(int index)
List of ports to expose from the container. 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. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol
repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
-
getEnvFromList
List<Generated.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 +listType=atomic
repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
-
getEnvFrom
Generated.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 +listType=atomic
repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
-
getEnvFromCount
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 +listType=atomic
repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
-
getEnvFromOrBuilderList
List<? extends Generated.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 +listType=atomic
repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
-
getEnvFromOrBuilder
Generated.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 +listType=atomic
repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
-
getEnvList
List<Generated.EnvVar> getEnvList()
List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.EnvVar env = 7;
-
getEnv
Generated.EnvVar getEnv(int index)
List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.EnvVar env = 7;
-
getEnvCount
int getEnvCount()
List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.EnvVar env = 7;
-
getEnvOrBuilderList
List<? extends Generated.EnvVarOrBuilder> getEnvOrBuilderList()
List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.EnvVar env = 7;
-
getEnvOrBuilder
Generated.EnvVarOrBuilder getEnvOrBuilder(int index)
List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.EnvVar env = 7;
-
hasResources
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;- Returns:
- Whether the resources field is set.
-
getResources
Generated.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;- Returns:
- The resources.
-
getResourcesOrBuilder
Generated.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;
-
getResizePolicyList
List<Generated.ContainerResizePolicy> getResizePolicyList()
Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic
repeated .k8s.io.api.core.v1.ContainerResizePolicy resizePolicy = 23;
-
getResizePolicy
Generated.ContainerResizePolicy getResizePolicy(int index)
Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic
repeated .k8s.io.api.core.v1.ContainerResizePolicy resizePolicy = 23;
-
getResizePolicyCount
int getResizePolicyCount()
Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic
repeated .k8s.io.api.core.v1.ContainerResizePolicy resizePolicy = 23;
-
getResizePolicyOrBuilderList
List<? extends Generated.ContainerResizePolicyOrBuilder> getResizePolicyOrBuilderList()
Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic
repeated .k8s.io.api.core.v1.ContainerResizePolicy resizePolicy = 23;
-
getResizePolicyOrBuilder
Generated.ContainerResizePolicyOrBuilder getResizePolicyOrBuilder(int index)
Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic
repeated .k8s.io.api.core.v1.ContainerResizePolicy resizePolicy = 23;
-
hasRestartPolicy
boolean hasRestartPolicy()
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. +featureGate=SidecarContainers +optional
optional string restartPolicy = 24;- Returns:
- Whether the restartPolicy field is set.
-
getRestartPolicy
String getRestartPolicy()
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. +featureGate=SidecarContainers +optional
optional string restartPolicy = 24;- Returns:
- The restartPolicy.
-
getRestartPolicyBytes
com.google.protobuf.ByteString getRestartPolicyBytes()
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. +featureGate=SidecarContainers +optional
optional string restartPolicy = 24;- Returns:
- The bytes for restartPolicy.
-
getVolumeMountsList
List<Generated.VolumeMount> getVolumeMountsList()
Pod volumes to mount into the container's filesystem. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath
repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
-
getVolumeMounts
Generated.VolumeMount getVolumeMounts(int index)
Pod volumes to mount into the container's filesystem. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath
repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
-
getVolumeMountsCount
int getVolumeMountsCount()
Pod volumes to mount into the container's filesystem. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath
repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
-
getVolumeMountsOrBuilderList
List<? extends Generated.VolumeMountOrBuilder> getVolumeMountsOrBuilderList()
Pod volumes to mount into the container's filesystem. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath
repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
-
getVolumeMountsOrBuilder
Generated.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index)
Pod volumes to mount into the container's filesystem. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath
repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
-
getVolumeDevicesList
List<Generated.VolumeDevice> getVolumeDevicesList()
volumeDevices is the list of block devices to be used by the container. +patchMergeKey=devicePath +patchStrategy=merge +listType=map +listMapKey=devicePath +optional
repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
-
getVolumeDevices
Generated.VolumeDevice getVolumeDevices(int index)
volumeDevices is the list of block devices to be used by the container. +patchMergeKey=devicePath +patchStrategy=merge +listType=map +listMapKey=devicePath +optional
repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
-
getVolumeDevicesCount
int getVolumeDevicesCount()
volumeDevices is the list of block devices to be used by the container. +patchMergeKey=devicePath +patchStrategy=merge +listType=map +listMapKey=devicePath +optional
repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
-
getVolumeDevicesOrBuilderList
List<? extends Generated.VolumeDeviceOrBuilder> getVolumeDevicesOrBuilderList()
volumeDevices is the list of block devices to be used by the container. +patchMergeKey=devicePath +patchStrategy=merge +listType=map +listMapKey=devicePath +optional
repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
-
getVolumeDevicesOrBuilder
Generated.VolumeDeviceOrBuilder getVolumeDevicesOrBuilder(int index)
volumeDevices is the list of block devices to be used by the container. +patchMergeKey=devicePath +patchStrategy=merge +listType=map +listMapKey=devicePath +optional
repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21;
-
hasLivenessProbe
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;- Returns:
- Whether the livenessProbe field is set.
-
getLivenessProbe
Generated.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;- Returns:
- The livenessProbe.
-
getLivenessProbeOrBuilder
Generated.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;
-
hasReadinessProbe
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;- Returns:
- Whether the readinessProbe field is set.
-
getReadinessProbe
Generated.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;- Returns:
- The readinessProbe.
-
getReadinessProbeOrBuilder
Generated.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;
-
hasStartupProbe
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;- Returns:
- Whether the startupProbe field is set.
-
getStartupProbe
Generated.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;- Returns:
- The startupProbe.
-
getStartupProbeOrBuilder
Generated.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;
-
hasLifecycle
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;- Returns:
- Whether the lifecycle field is set.
-
getLifecycle
Generated.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;- Returns:
- The lifecycle.
-
getLifecycleOrBuilder
Generated.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;
-
hasTerminationMessagePath
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;- Returns:
- Whether the terminationMessagePath field is set.
-
getTerminationMessagePath
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;- Returns:
- The terminationMessagePath.
-
getTerminationMessagePathBytes
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;- Returns:
- The bytes for terminationMessagePath.
-
hasTerminationMessagePolicy
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;- Returns:
- Whether the terminationMessagePolicy field is set.
-
getTerminationMessagePolicy
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;- Returns:
- The terminationMessagePolicy.
-
getTerminationMessagePolicyBytes
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;- Returns:
- The bytes for terminationMessagePolicy.
-
hasImagePullPolicy
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;- Returns:
- Whether the imagePullPolicy field is set.
-
getImagePullPolicy
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;- Returns:
- The imagePullPolicy.
-
getImagePullPolicyBytes
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;- Returns:
- The bytes for imagePullPolicy.
-
hasSecurityContext
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;- Returns:
- Whether the securityContext field is set.
-
getSecurityContext
Generated.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;- Returns:
- The securityContext.
-
getSecurityContextOrBuilder
Generated.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;
-
hasStdin
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;- Returns:
- Whether the stdin field is set.
-
getStdin
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;- Returns:
- The stdin.
-
hasStdinOnce
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;- Returns:
- Whether the stdinOnce field is set.
-
getStdinOnce
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;- Returns:
- The stdinOnce.
-
hasTty
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;- Returns:
- Whether the tty field is set.
-
getTty
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;- Returns:
- The tty.
-
-