Service#
- pydantic model phalanx.models.kubernetes.Service#
A Service.
- Parameters:
kind (
Literal['Service'])name (
str)namespace (
str)previous_loadbalancer_ip (
IPv4Address|None, default:None)previous_external_traffic_policy (
ServiceExternalTrafficPolicy|None, default:None)external_traffic_policy (
ServiceExternalTrafficPolicy|None, default:None)load_balancer_ip (
IPv4Address|None, default:None)status_load_balancer_ip (
IPv4Address|None, default:None)
Show JSON schema
{ "title": "Service", "description": "A Service.", "type": "object", "properties": { "kind": { "const": "Service", "title": "Kind", "type": "string" }, "name": { "title": "Name", "type": "string" }, "finalizers": { "default": [], "items": { "type": "string" }, "title": "Finalizers", "type": "array" }, "status": { "anyOf": [ { "$ref": "#/$defs/Status" }, { "type": "null" } ], "default": null }, "namespace": { "title": "Namespace", "type": "string" }, "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": { "Condition": { "description": "A Kubernetes condition.", "properties": { "type": { "title": "Type", "type": "string" }, "status": { "$ref": "#/$defs/ConditionStatus" } }, "required": [ "type", "status" ], "title": "Condition", "type": "object" }, "ConditionStatus": { "description": "Valid values for the condition.status field of a resource.", "enum": [ "True", "False", "Unknown" ], "title": "ConditionStatus", "type": "string" }, "ServiceExternalTrafficPolicy": { "description": "Valid values for the spec.externalTrafficPolicy field of a Service.", "enum": [ "Cluster", "Local" ], "title": "ServiceExternalTrafficPolicy", "type": "string" }, "Status": { "description": "The status field of a Kubernetes resource.", "properties": { "conditions": { "default": [], "items": { "$ref": "#/$defs/Condition" }, "title": "Conditions", "type": "array" } }, "title": "Status", "type": "object" } }, "required": [ "kind", "name", "namespace" ] }
- Config:
validate_by_name: bool = True
- Fields:
- field external_traffic_policy: ServiceExternalTrafficPolicy | None = None#
The externalTrafficPolicy set in the spec
- field load_balancer_ip: IPv4Address | None = None#
The load balancer IP set in the spec
- field previous_external_traffic_policy: ServiceExternalTrafficPolicy | None = None#
The original externalTrafficPolicy, if we previously released the IP.
- field previous_loadbalancer_ip: IPv4Address | None = None#
The original loadBalancerIP, if we previously released it.
- field status_load_balancer_ip: IPv4Address | None = 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: