Skip to content

Commit cf5578e

Browse files
committed
chore(controller): change replicas
1 parent 44e2c84 commit cf5578e

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

charts/controller/templates/controller-api-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
annotations:
88
component.drycc.cc/version: {{ .Values.imageTag }}
99
spec:
10-
replicas: {{ .Values.replicas }}
10+
replicas: {{ .Values.apiReplicas }}
1111
strategy:
1212
rollingUpdate:
1313
maxSurge: 1

charts/controller/templates/controller-webhook-deloyment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Deployment
33
metadata:
44
name: drycc-controller-webhook
55
spec:
6-
replicas: 1
6+
replicas: {{ .Values.webhookReplicas }}
77
selector:
88
matchLabels:
99
component: drycc-controller-webhook

charts/controller/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ k8sApiVerifyTls: "true"
1818

1919
# Set storageClassName, It is used for application mount.
2020
appStorageClass: "drycc-storage"
21-
# Set controller deployment replicas
22-
replicas: 1
21+
# Set api replicas
22+
apiReplicas: 1
2323
# Set celery replicas
2424
celeryReplicas: 1
25+
# Set webhook replicas
26+
webhookReplicas: 1
2527
# Set cronjob concurrencyPolicy
2628
# Allow (default): The cron job allows concurrently running jobs
2729
# Forbid: The cron job does not allow concurrent runs; if it is time for a new job run and the previous job run hasn't finished yet, the cron job skips the new job run

0 commit comments

Comments
 (0)