pkg/fixtures/manifests/hpa/hpa-memory.yaml (22 lines of code) (raw):
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: test-app
labels:
app.kubernetes.io/name: test-app
app.kubernetes.io/part-of: test-app-project
kubernetes.azure.com/generator: draft
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: test-app
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80