Kubernetes Horizontal Pod Autoscaler Manifest: Difference between revisions
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
metadata: | metadata: | ||
name: httpd | name: httpd | ||
spec: | spec: | ||
maxReplicas: 10 | maxReplicas: 10 | ||
Line 69: | Line 39: | ||
name: httpd | name: httpd | ||
targetCPUUtilizationPercentage: 50 | targetCPUUtilizationPercentage: 50 | ||
Revision as of 19:31, 9 October 2020
External
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#horizontalpodautoscaler-v1-autoscaling
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#horizontalpodautoscaler-v2beta2-autoscaling
Internal
Overview
Version 2 beta 2
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
Version 1
apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: name: httpd spec: maxReplicas: 10 minReplicas: 1 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: httpd targetCPUUtilizationPercentage: 50