Kubernetes Horizontal Pod Autoscaler Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
* [[Kubernetes_Horizontal_Pod_Autoscaler#HPA_Manifest|Horizontal Pod Autoscaler]]
* [[Kubernetes_Horizontal_Pod_Autoscaler#HPA_Manifest|Horizontal Pod Autoscaler]]
=Overview=
=Overview=
==Version 2 beta 2==
==Version 1==
  apiVersion: autoscaling/v1
  apiVersion: autoscaling/v1
  kind: HorizontalPodAutoscaler
  kind: HorizontalPodAutoscaler

Revision as of 00:40, 7 October 2020

External

Internal

Overview

Version 2 beta 2

Version 1

apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
  name: httpd
  managedFields:
  - apiVersion: autoscaling/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:spec:
        f:maxReplicas: {}
        f:minReplicas: {}
        f:scaleTargetRef:
          f:apiVersion: {}
          f:kind: {}
          f:name: {}
        f:targetCPUUtilizationPercentage: {}
    manager: kubectl-autoscale
    operation: Update
    time: "2020-10-06T21:09:25Z"
  - apiVersion: autoscaling/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:autoscaling.alpha.kubernetes.io/conditions: {}
          f:autoscaling.alpha.kubernetes.io/current-metrics: {}
      f:status:
        f:currentCPUUtilizationPercentage: {}
        f:currentReplicas: {}
        f:desiredReplicas: {}
    manager: kube-controller-manager
    operation: Update
    time: "2020-10-06T21:10:25Z"
spec:
  maxReplicas: 10
  minReplicas: 1
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: httpd
  targetCPUUtilizationPercentage: 50
status:
  currentCPUUtilizationPercentage: 2
  currentReplicas: 1
  desiredReplicas: 1