{
  "description": "VerticalPodAutoscaler is the configuration for a vertical pod\nautoscaler, which automatically manages pod resources based on historical and\nreal time resource utilization.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "Specification of the behavior of the autoscaler.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.",
      "properties": {
        "resourcePolicy": {
          "additionalProperties": false,
          "description": "Controls how the autoscaler computes recommended resources.\nThe resource policy may be used to set constraints on the recommendations\nfor individual containers. If not specified, the autoscaler computes recommended\nresources for all containers in the pod, without additional constraints.",
          "properties": {
            "containerPolicies": {
              "description": "Per-container resource policies.",
              "items": {
                "additionalProperties": false,
                "description": "ContainerResourcePolicy controls how autoscaler computes the recommended\nresources for a specific container.",
                "properties": {
                  "containerName": {
                    "description": "Name of the container or DefaultContainerResourcePolicy, in which\ncase the policy is used by the containers that don't have their own\npolicy specified.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "maxAllowed": {
                    "additionalProperties": {
                      "oneOf": [
                        {
                          "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                          "type": "string"
                        },
                        {
                          "type": "integer"
                        }
                      ],
                      "x-kubernetes-int-or-string": true
                    },
                    "description": "Specifies the maximum amount of resources that will be recommended\nfor the container. The default is no maximum.",
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "minAllowed": {
                    "additionalProperties": {
                      "oneOf": [
                        {
                          "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                          "type": "string"
                        },
                        {
                          "type": "integer"
                        }
                      ],
                      "x-kubernetes-int-or-string": true
                    },
                    "description": "Specifies the minimal amount of resources that will be recommended\nfor the container. The default is no minimum.",
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "mode": {
                    "description": "Whether autoscaler is enabled for the container. The default is \"Auto\".",
                    "enum": [
                      "Auto",
                      "Off"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "targetRef": {
          "additionalProperties": false,
          "description": "TargetRef points to the controller managing the set of pods for the\nautoscaler to control - e.g. Deployment, StatefulSet. VerticalPodAutoscaler\ncan be targeted at controller implementing scale subresource (the pod set is\nretrieved from the controller's ScaleStatus) or some well known controllers\n(e.g. for DaemonSet the pod set is read from the controller's spec).\nIf VerticalPodAutoscaler cannot use specified target it will report\nConfigUnsupported condition.\nNote that VerticalPodAutoscaler does not require full implementation\nof scale subresource - it will not use it to modify the replica count.\nThe only thing retrieved is a label selector matching pods grouped by\nthe target resource.",
          "properties": {
            "apiVersion": {
              "description": "apiVersion is the API version of the referent",
              "type": [
                "string",
                "null"
              ]
            },
            "kind": {
              "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
              "type": "string"
            },
            "name": {
              "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name"
          ],
          "type": "object",
          "x-kubernetes-map-type": "atomic"
        },
        "updatePolicy": {
          "additionalProperties": false,
          "description": "Describes the rules on how changes are applied to the pods.\nIf not specified, all fields in the `PodUpdatePolicy` are set to their\ndefault values.",
          "properties": {
            "updateMode": {
              "description": "Controls when autoscaler applies changes to the pod resources.\nThe default is 'Auto'.",
              "enum": [
                "Off",
                "Initial",
                "Recreate",
                "Auto"
              ],
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "targetRef"
      ],
      "type": "object"
    },
    "status": {
      "additionalProperties": false,
      "description": "Current information about the autoscaler.",
      "properties": {
        "conditions": {
          "description": "Conditions is the set of conditions required for this autoscaler to scale its target,\nand indicates whether or not those conditions are met.",
          "items": {
            "additionalProperties": false,
            "description": "VerticalPodAutoscalerCondition describes the state of\na VerticalPodAutoscaler at a certain point.",
            "properties": {
              "lastTransitionTime": {
                "description": "lastTransitionTime is the last time the condition transitioned from\none status to another",
                "format": "date-time",
                "type": [
                  "string",
                  "null"
                ]
              },
              "message": {
                "description": "message is a human-readable explanation containing details about\nthe transition",
                "type": [
                  "string",
                  "null"
                ]
              },
              "reason": {
                "description": "reason is the reason for the condition's last transition.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "description": "status is the status of the condition (True, False, Unknown)",
                "type": "string"
              },
              "type": {
                "description": "type describes the current condition",
                "type": "string"
              }
            },
            "required": [
              "status",
              "type"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "recommendation": {
          "additionalProperties": false,
          "description": "The most recently computed amount of resources recommended by the\nautoscaler for the controlled pods.",
          "properties": {
            "containerRecommendations": {
              "description": "Resources recommended by the autoscaler for each container.",
              "items": {
                "additionalProperties": false,
                "description": "RecommendedContainerResources is the recommendation of resources computed by\nautoscaler for a specific container. Respects the container resource policy\nif present in the spec. In particular the recommendation is not produced for\ncontainers with `ContainerScalingMode` set to 'Off'.",
                "properties": {
                  "containerName": {
                    "description": "Name of the container.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "lowerBound": {
                    "additionalProperties": {
                      "oneOf": [
                        {
                          "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                          "type": "string"
                        },
                        {
                          "type": "integer"
                        }
                      ],
                      "x-kubernetes-int-or-string": true
                    },
                    "description": "Minimum recommended amount of resources. Observes ContainerResourcePolicy.\nThis amount is not guaranteed to be sufficient for the application to operate in a stable way, however\nrunning with less resources is likely to have significant impact on performance/availability.",
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "target": {
                    "additionalProperties": {
                      "oneOf": [
                        {
                          "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                          "type": "string"
                        },
                        {
                          "type": "integer"
                        }
                      ],
                      "x-kubernetes-int-or-string": true
                    },
                    "description": "Recommended amount of resources. Observes ContainerResourcePolicy.",
                    "type": "object"
                  },
                  "uncappedTarget": {
                    "additionalProperties": {
                      "oneOf": [
                        {
                          "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                          "type": "string"
                        },
                        {
                          "type": "integer"
                        }
                      ],
                      "x-kubernetes-int-or-string": true
                    },
                    "description": "The most recent recommended resources target computed by the autoscaler\nfor the controlled pods, based only on actual resource usage, not taking\ninto account the ContainerResourcePolicy.\nMay differ from the Recommendation if the actual resource usage causes\nthe target to violate the ContainerResourcePolicy (lower than MinAllowed\nor higher that MaxAllowed).\nUsed only as status indication, will not affect actual resource assignment.",
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "upperBound": {
                    "additionalProperties": {
                      "oneOf": [
                        {
                          "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                          "type": "string"
                        },
                        {
                          "type": "integer"
                        }
                      ],
                      "x-kubernetes-int-or-string": true
                    },
                    "description": "Maximum recommended amount of resources. Observes ContainerResourcePolicy.\nAny resources allocated beyond this value are likely wasted. This value may be larger than the maximum\namount of application is actually capable of consuming.",
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "required": [
                  "target"
                ],
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}