Kubernetes Horizontal Pod Autoscaler Manifest Version 2 beta 2: Difference between revisions
Jump to navigation
Jump to search
(→type) |
|||
Line 30: | Line 30: | ||
==metrics== | ==metrics== | ||
===type=== | ===type=== | ||
The type can be Resource, Pods, Object. | The type can be [[Metrics_in_Kubernetes#Resource_Metrics|Resource]], [[Metrics_in_Kubernetes#Pod_Metrics|Pods]], [[Metrics_in_Kubernetes#Object_Metrics|Object]]. |
Revision as of 21:41, 12 October 2020
External
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