Deployment#
- pydantic model phalanx.models.kubernetes.Deployment#
A Deployment kubernetes resource.
- Parameters:
data (
Any)
Show JSON schema
{ "title": "Deployment", "description": "A Deployment kubernetes resource.", "type": "object", "properties": { "kind": { "const": "Deployment", "title": "Kind", "type": "string" }, "namespace": { "title": "Namespace", "type": "string" }, "name": { "title": "Name", "type": "string" }, "replicas": { "title": "Replicas", "type": "integer" }, "previous_replica_count": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Previous Replica Count" } }, "required": [ "kind", "namespace", "name", "replicas" ] }
- Config:
validate_by_name: bool = True
- Fields:
- field name: str [Required]#
The name of the resource.
- field namespace: str [Required]#
The namespace the resource is in.
- field previous_replica_count: int | None = None#
The original number of replicas if we explicitly scaled down.
- field replicas: int [Required]#