ServiceStatus

io.k8s.api.core.v1.ServiceStatus source ↗

ServiceStatus represents the current status of a service.

conditions[]ConditionCurrent service state
lastTransitionTimeTime requiredlastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
messagestring requiredmessage is a human readable message indicating details about the transition. This may be an empty string.
observedGenerationinteger (int64)observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
reasonstring requiredreason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
statusstring requiredstatus of the condition, one of True, False, Unknown.
typestring requiredtype of condition in CamelCase or in foo.example.com/CamelCase.
loadBalancerLoadBalancerStatusLoadBalancer contains the current status of the load-balancer, if one is present.
ingress[]LoadBalancerIngressIngress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.
hostnamestringHostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)
ipstringIP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)
ipModestringIPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to "VIP" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to "Proxy" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.
ports[]PortStatusPorts is a list of records of service ports If used, every port defined in the service should have an entry in it
errorstringError is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names
  • cloud provider specific error values must have names that comply with the
format foo.example.com/CamelCase.
portinteger (int32) requiredPort is the port number of the service port of which status is recorded here
protocolstring requiredProtocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"