feat: adding hpa

This commit is contained in:
Steve Lowery 2024-01-04 20:00:50 -06:00
parent 5b48fbc7c6
commit 7a6095676e
No known key found for this signature in database
GPG Key ID: 71D35D1685F85C02
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: guestbook
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: guestbook
minReplicas: 1
maxReplicas: 3
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50