Class V1ContainerStatus

java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerStatus

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T21:37:40.170033Z[Etc/UTC]") public class V1ContainerStatus extends Object
ContainerStatus contains details for the current status of this container.
  • Field Details

  • Constructor Details

    • V1ContainerStatus

      public V1ContainerStatus()
  • Method Details

    • allocatedResources

      public V1ContainerStatus allocatedResources(Map<String,Quantity> allocatedResources)
    • putAllocatedResourcesItem

      public V1ContainerStatus putAllocatedResourcesItem(String key, Quantity allocatedResourcesItem)
    • getAllocatedResources

      @Nullable public Map<String,Quantity> getAllocatedResources()
      AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.
      Returns:
      allocatedResources
    • setAllocatedResources

      public void setAllocatedResources(Map<String,Quantity> allocatedResources)
    • containerID

      public V1ContainerStatus containerID(String containerID)
    • getContainerID

      @Nullable public String getContainerID()
      ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").
      Returns:
      containerID
    • setContainerID

      public void setContainerID(String containerID)
    • image

      public V1ContainerStatus image(String image)
    • getImage

      public String getImage()
      Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.
      Returns:
      image
    • setImage

      public void setImage(String image)
    • imageID

      public V1ContainerStatus imageID(String imageID)
    • getImageID

      public String getImageID()
      ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.
      Returns:
      imageID
    • setImageID

      public void setImageID(String imageID)
    • lastState

      public V1ContainerStatus lastState(V1ContainerState lastState)
    • getLastState

      @Nullable public V1ContainerState getLastState()
      Get lastState
      Returns:
      lastState
    • setLastState

      public void setLastState(V1ContainerState lastState)
    • name

      public V1ContainerStatus name(String name)
    • getName

      public String getName()
      Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.
      Returns:
      name
    • setName

      public void setName(String name)
    • ready

      public V1ContainerStatus ready(Boolean ready)
    • getReady

      public Boolean getReady()
      Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic.
      Returns:
      ready
    • setReady

      public void setReady(Boolean ready)
    • resources

      public V1ContainerStatus resources(V1ResourceRequirements resources)
    • getResources

      @Nullable public V1ResourceRequirements getResources()
      Get resources
      Returns:
      resources
    • setResources

      public void setResources(V1ResourceRequirements resources)
    • restartCount

      public V1ContainerStatus restartCount(Integer restartCount)
    • getRestartCount

      public Integer getRestartCount()
      RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.
      Returns:
      restartCount
    • setRestartCount

      public void setRestartCount(Integer restartCount)
    • started

      public V1ContainerStatus started(Boolean started)
    • getStarted

      @Nullable public Boolean getStarted()
      Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.
      Returns:
      started
    • setStarted

      public void setStarted(Boolean started)
    • state

      public V1ContainerStatus state(V1ContainerState state)
    • getState

      @Nullable public V1ContainerState getState()
      Get state
      Returns:
      state
    • setState

      public void setState(V1ContainerState state)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object