File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ metadata:
14
14
{{- include "coder.labels" . | nindent 4 }}
15
15
annotations : {{ toYaml .Values.coder.annotations | nindent 4}}
16
16
spec :
17
- # NOTE: this is currently not used as coder v2 does not support high
18
- # availability yet.
19
- # replicas: {{ .Values.coder.replicaCount }}
20
- replicas : 1
17
+ replicas : {{ .Values.coder.replicaCount }}
21
18
selector :
22
19
matchLabels :
23
20
{{- include "coder.selectorLabels" . | nindent 6 }}
38
35
env :
39
36
- name : CODER_ADDRESS
40
37
value : " 0.0.0.0:{{ include " coder.port" . }}"
38
+ # Used for inter-pod communication with high-availability.
39
+ - name : KUBE_POD_IP
40
+ valueFrom :
41
+ fieldRef :
42
+ fieldPath : status.podIP
43
+ - name : CODER_DERP_SERVER_RELAY_ADDRESS
44
+ value : " {{ include " coder.portName" . }}://$(KUBE_POD_IP):{{ include "coder.port" . }}"
41
45
{{- include "coder.tlsEnv" . | nindent 12 }}
42
46
{{- with .Values.coder.env -}}
43
47
{{ toYaml . | nindent 12 }}
Original file line number Diff line number Diff line change 1
1
# coder -- Primary configuration for `coder server`.
2
2
coder :
3
- # NOTE: this is currently not used as coder v2 does not support high
4
- # availability yet .
5
- # # coder.replicaCount -- The number of Kubernetes deployment replicas .
6
- # replicaCount: 1
3
+ # coder.replicaCount -- The number of Kubernetes deployment replicas.
4
+ # This should only be increased if High Availability is enabled .
5
+ # This is an Enterprise feature. Contact sales@coder.com .
6
+ replicaCount : 1
7
7
8
8
# coder.image -- The image to use for Coder.
9
9
image :
You can’t perform that action at this time.
0 commit comments