StatefulSet#

pydantic model phalanx.models.kubernetes.StatefulSet#

A StatefulSet kubernetes resource.

Parameters:

data (Any)

Show JSON schema
{
   "title": "StatefulSet",
   "description": "A StatefulSet kubernetes resource.",
   "type": "object",
   "properties": {
      "kind": {
         "const": "StatefulSet",
         "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"
      },
      "pervious_replica_count": {
         "anyOf": [
            {
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Pervious Replica Count"
      }
   },
   "required": [
      "kind",
      "namespace",
      "name",
      "replicas"
   ]
}

Config:
  • validate_by_name: bool = True

Fields:
field kind: Literal['StatefulSet'] [Required]#

The kind field will always be StatefulSet.

field name: str [Required]#

The name of the resource.

field namespace: str [Required]#

The namespace the resource is in.

field pervious_replica_count: Optional[int] = None#

The original number of replicas if we explicitly scaled down.

field previous_replica_count: int | None = None#

The original number of replicas if we explicitly scaled down.

field replicas: int [Required]#