Kubernetes Horizontal Pod Autoscaler Manifest

From NovaOrdis Knowledge Base
Revision as of 21:12, 6 October 2020 by Ovidiu (talk | contribs) (Created page with "=Internal= * Horizontal Pod Autoscaler =Overview= apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
  annotations:
    autoscaling.alpha.kubernetes.io/conditions: '[{"type":"AbleToScale","status":"True","lastTransitionTime":"2020-10-06T21:10:25Z","reason":"ReadyForNewScale","message":"recommended
      size matches current size"},{"type":"ScalingActive","status":"True","lastTransitionTime":"2020-10-06T21:10:25Z","reason":"ValidMetricFound","message":"the
      HPA was able to successfully calculate a replica count from cpu resource utilization
      (percentage of request)"},{"type":"ScalingLimited","status":"False","lastTransitionTime":"2020-10-06T21:10:25Z","reason":"DesiredWithinRange","message":"the
      desired count is within the acceptable range"}]'
    autoscaling.alpha.kubernetes.io/current-metrics: '[{"type":"Resource","resource":{"name":"cpu","currentAverageUtilization":2,"currentAverageValue":"1m"}}]'
  creationTimestamp: "2020-10-06T21:09:25Z"
  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"
  name: httpd
  namespace: default
  resourceVersion: "577691"
  selfLink: /apis/autoscaling/v1/namespaces/default/horizontalpodautoscalers/httpd
  uid: d8bd47b6-767d-4b4b-8c2a-afcc0703e33c
spec:
  maxReplicas: 10
  minReplicas: 1
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: httpd
  targetCPUUtilizationPercentage: 50
status:
  currentCPUUtilizationPercentage: 2
  currentReplicas: 1
  desiredReplicas: 1