kind: HorizontalPodAutoscaler
Jump to navigation
Jump to search
minReplicas maxReplicas targetCPUUtilizationPercentage
apiVersion: autoscaling/v2
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: php-apache
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: php-apache
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50
status:
observedGeneration: 1
lastScaleTime: <some-time>
currentReplicas: 1
desiredReplicas: 1
currentMetrics:
- type: Resource
resource:
name: cpu
current:
averageUtilization: 0
averageValue: 0
Related[edit]
kind: NodePoolkind: EC2NodeClasskind: AWSNodeTemplate- kubectl describe hpa
kubernetes_horizontal_pod_autoscaler_v2- aws_eks_node_group
See also[edit]
Advertising: