Explain this openshift resource manifest
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: hpa-resource-metrics-memory
namespace: default
spec:
...
minReplicas: 20
...
behavior:
scaleDown:
stabilizationWindowSeconds: 300
policies:
- type: Pods
value: 4
periodSeconds: 30
- type: Percent
value: 10
periodSeconds: 60
selectPolicy: Max
scaleUp:
selectPolicy: Disabled
This OpenShift Horizontal Pod Autoscaler (HPA) manifest automatically adjusts the number of pod replicas based on resource metrics like memory usage.
Summary of the OpenShift manifest for the HorizontalPodAutoscaler (HPA):
Minimum Replicas: Ensures at least 20 pod replicas are maintained.
Scale Down Behavior:
Stabilization window of 300 seconds.
Policies to scale down by a maximum of 4 pods every 30 seconds or 10% every 60 seconds.
Uses the policy with the maximum value.
Scale Up Behavior: Scaling up is disabled,
This manifest defines a HorizontalPodAutoscaler to automatically scale the number of pod replicas based on resource usage, in this case, memory.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.