Skip to content

Commit a2c8b5c

Browse files
authored
Merge pull request #159 from embik/leader-election
Enable leader election by default and configure RollingUpdate
2 parents 7b57f8c + 528257d commit a2c8b5c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

charts/kcp/templates/server-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ spec:
188188
{{- if .Values.kcp.authorization.webhook.secretName }}
189189
- --authorization-webhook-config-file=/etc/kcp/authorization/webhook/kubeconfig
190190
{{- end }}
191+
{{- if .Values.kcp.leaderElection.enabled }}
192+
- --enable-leader-election
193+
{{- end }}
191194
{{- range .Values.kcp.extraFlags }}
192195
- {{ . }}
193196
{{- end }}

charts/kcp/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ etcd:
6464
kcp:
6565
replicas: 1
6666
strategy:
67-
type: Recreate
67+
type: RollingUpdate
6868
image: ghcr.io/kcp-dev/kcp
6969
# Set this to override the image tag used for kcp (determined by chart appVersion by default).
7070
tag: ""
@@ -76,6 +76,8 @@ kcp:
7676
# Enabled "batteries" (see kcp start --help for available batteries).
7777
batteries:
7878
- workspace-types
79+
leaderElection:
80+
enabled: true
7981
# Additional flags passed to kcp binary.
8082
extraFlags: []
8183

@@ -166,7 +168,7 @@ kcp:
166168
kcpFrontProxy:
167169
replicas: 1
168170
strategy:
169-
type: Recreate
171+
type: RollingUpdate
170172
image: ghcr.io/kcp-dev/kcp
171173
# Set this to override the image tag used for kcp-front-proxy (determined by chart appVersion by default).
172174
tag: ""

0 commit comments

Comments
 (0)