Kubernetes Horizontal Pod Autoscaler Manifest Version 2 beta 2: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with " apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: name: example spec: minReplicas: 1 maxReplicas: 5 scaleTargetRef: apiVersion: apps...")
 
No edit summary
Line 1: Line 1:
=Internal=
* [[Kubernetes_Horizontal_Pod_Autoscaler_Manifest#Version_2_beta_2|Horizontal Pod Autoscaler Manifest]]
=Example=
  apiVersion: autoscaling/v2beta2
  apiVersion: autoscaling/v2beta2
  kind: HorizontalPodAutoscaler
  kind: HorizontalPodAutoscaler

Revision as of 21:37, 12 October 2020

Internal

Example

apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
  name: example
spec:
  minReplicas: 1
  maxReplicas: 5
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: httpd
  metrics:
    - type: Resource
      resource:
        name: cpu
        target:
          type: Utilization
          averageUtilization: 50