Skip to content

Commit 84095ed

Browse files
authored
Vary hpa min replicas by env. (boostorg#1968)
1 parent f466d00 commit 84095ed

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

kube/boost/templates/hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: HorizontalPodAutoscaler
33
metadata:
44
name: boost
55
spec:
6-
minReplicas: 3
6+
minReplicas: {{.Values.hpaMinReplicas}}
77
maxReplicas: 12
88
metrics:
99
- resource:

kube/boost/values-cppal-dev-gke.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,4 @@ gatewayStaticIp: cppal-dev-ingress1
252252
gatewayStaticIpv6: cppal-dev-gateway-ipv6
253253
redisInstall: false
254254
celeryInstall: true
255+
hpaMinReplicas: 2

kube/boost/values-production-gke.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,4 @@ gatewayStaticIp: boost-io-ingress1
251251
gatewayStaticIpv6: production-gateway-ipv6
252252
redisInstall: false
253253
celeryInstall: true
254+
hpaMinReplicas: 4

kube/boost/values-stage-gke.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,4 @@ gatewayStaticIp: boost-stage-ingress1
251251
gatewayStaticIpv6: stage-gateway-ipv6
252252
redisInstall: false
253253
celeryInstall: true
254+
hpaMinReplicas: 2

0 commit comments

Comments
 (0)