Service#

pydantic model phalanx.models.kubernetes.Service#

A Service.

Parameters:

data (Any)

Show JSON schema
{
   "title": "Service",
   "description": "A Service.",
   "type": "object",
   "properties": {
      "kind": {
         "const": "Service",
         "title": "Kind",
         "type": "string"
      },
      "namespace": {
         "title": "Namespace",
         "type": "string"
      },
      "name": {
         "title": "Name",
         "type": "string"
      },
      "finalizers": {
         "default": [],
         "items": {
            "type": "string"
         },
         "title": "Finalizers",
         "type": "array"
      },
      "previous_loadbalancer_ip": {
         "anyOf": [
            {
               "format": "ipv4",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Previous Loadbalancer Ip"
      },
      "spec_load_balancer_ip": {
         "anyOf": [
            {
               "format": "ipv4",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Spec Load Balancer Ip"
      },
      "status_load_balancer_ip": {
         "anyOf": [
            {
               "format": "ipv4",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Status Load Balancer Ip"
      }
   },
   "required": [
      "kind",
      "namespace",
      "name"
   ]
}

Config:
  • validate_by_name: bool = True

Fields:
field finalizers: list[str] = []#

Finalizers on this resource.

field kind: Literal['Service'] [Required]#

The kind of a Service is always Service.

field name: str [Required]#

The name of the resource.

field namespace: str [Required]#

The namespace the resource is in.

field previous_loadbalancer_ip: Optional[IPv4Address] = None#

The original loadBalancerIP, if we previously released it.

field spec_load_balancer_ip: Optional[IPv4Address] = None#

The load balancer IP set in the spec

field status_load_balancer_ip: Optional[IPv4Address] = None#

The load balancer IP in the ingress in the status.

get_kind_name()#

Get the kind-qualified name of this resource.

Returns:

The kind-qualified name of this resource.

Return type:

str