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" }, "previous_external_traffic_policy": { "anyOf": [ { "$ref": "#/$defs/ServiceExternalTrafficPolicy" }, { "type": "null" } ], "default": null }, "external_traffic_policy": { "anyOf": [ { "$ref": "#/$defs/ServiceExternalTrafficPolicy" }, { "type": "null" } ], "default": null }, "load_balancer_ip": { "anyOf": [ { "format": "ipv4", "type": "string" }, { "type": "null" } ], "default": null, "title": "Load Balancer Ip" }, "status_load_balancer_ip": { "anyOf": [ { "format": "ipv4", "type": "string" }, { "type": "null" } ], "default": null, "title": "Status Load Balancer Ip" } }, "$defs": { "ServiceExternalTrafficPolicy": { "description": "Valid values for the spec.externalTrafficPolicy field of a Service.", "enum": [ "Cluster", "Local" ], "title": "ServiceExternalTrafficPolicy", "type": "string" } }, "required": [ "kind", "namespace", "name" ] }
- Config:
validate_by_name: bool = True
- Fields:
-
field external_traffic_policy:
Optional[ServiceExternalTrafficPolicy] = None# The externalTrafficPolicy set in the spec
- field finalizers: list[str] = []#
Finalizers on this resource.
-
field load_balancer_ip:
Optional[IPv4Address] = None# The load balancer IP set in the spec
- field name: str [Required]#
The name of the resource.
- field namespace: str [Required]#
The namespace the resource is in.
-
field previous_external_traffic_policy:
Optional[ServiceExternalTrafficPolicy] = None# The original externalTrafficPolicy, if we previously released the IP.
-
field previous_loadbalancer_ip:
Optional[IPv4Address] = None# The original loadBalancerIP, if we previously released it.
-
field status_load_balancer_ip:
Optional[IPv4Address] = None# The load balancer IP in the ingress in the status.