Kubernetes Horizontal Pod Autoscaler Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Horizontal Pod Autoscaler =Overview= apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata:...")
 
Line 5: Line 5:
  kind: HorizontalPodAutoscaler
  kind: HorizontalPodAutoscaler
  metadata:
  metadata:
   annotations:
   name: httpd
    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:
   managedFields:
   - apiVersion: autoscaling/v1
   - apiVersion: autoscaling/v1
Line 43: Line 36:
     operation: Update
     operation: Update
     time: "2020-10-06T21:10:25Z"
     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:
  spec:
   maxReplicas: 10
   maxReplicas: 10

Revision as of 21:15, 6 October 2020

Internal

Overview

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