Skip to content

Commit daf3c55

Browse files
author
Jody McIntyre
committed
add hpa yaml
1 parent 01078bc commit daf3c55

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

deployment/hpa.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: autoscaling/v1
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: imageserver
5+
spec:
6+
scaleTargetRef:
7+
apiVersion: extensions/v1beta1
8+
kind: Deployment
9+
name: imageserver
10+
# Set this to 3x "min-nodes":
11+
minReplicas: 3
12+
# Set this to 3x "max-nodes":
13+
maxReplicas: 9
14+
# This should be raised to 80 for production:
15+
targetCPUUtilizationPercentage: 50

0 commit comments

Comments
 (0)