File tree 2 files changed +43
-3
lines changed
2 files changed +43
-3
lines changed Original file line number Diff line number Diff line change 30
30
restartPolicy : Always
31
31
{{- with .Values.coder.image.pullSecrets }}
32
32
imagePullSecrets :
33
- {{- toYaml . | nindent 8 }}
33
+ {{- toYaml . | nindent 8 }}
34
34
{{- end }}
35
35
terminationGracePeriodSeconds : 60
36
+ {{- with .Values.coder.affinity }}
37
+ affinity :
38
+ {{- toYaml . | nindent 8 }}
39
+ {{- end }}
40
+ {{- with .Values.coder.tolerations }}
41
+ tolerations :
42
+ {{- toYaml . | nindent 8 }}
43
+ {{- end }}
44
+ {{- with .Values.coder.nodeSelector }}
45
+ nodeSelector :
46
+ {{ toYaml . | nindent 8 }}
47
+ {{- end }}
36
48
containers :
37
49
- name : coder
38
50
image : {{ include "coder.image" . | quote }}
Original file line number Diff line number Diff line change @@ -65,15 +65,43 @@ coder:
65
65
66
66
# coder.resources -- The resources to request for Coder. These are optional
67
67
# and are not set by default.
68
- resources :
69
- {}
68
+ resources : {}
70
69
# limits:
71
70
# cpu: 100m
72
71
# memory: 128Mi
73
72
# requests:
74
73
# cpu: 100m
75
74
# memory: 128Mi
76
75
76
+ # coder.affinity -- Allows specifying an affinity rule for the `coder` deployment.
77
+ # The default rule prefers to schedule coder pods on different
78
+ # nodes, which is only applicable if coder.replicaCount is greater than 1.
79
+ affinity :
80
+ podAntiAffinity :
81
+ preferredDuringSchedulingIgnoredDuringExecution :
82
+ - podAffinityTerm :
83
+ labelSelector :
84
+ matchExpressions :
85
+ - key : app.coder.com
86
+ operator : In
87
+ values :
88
+ - " true"
89
+ topologyKey : kubernetes.io/hostname
90
+ weight : 1
91
+
92
+ # coder.tolerations -- Tolerations for tainted nodes.
93
+ # See: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
94
+ tolerations : {}
95
+ # - key: "key"
96
+ # operator: "Equal"
97
+ # value: "value"
98
+ # effect: "NoSchedule"
99
+
100
+ # coder.nodeSelector -- Node labels for constraining coder pods to nodes.
101
+ # See: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
102
+ nodeSelector : {}
103
+ # kubernetes.io/os: linux
104
+
77
105
# coder.service -- The Service object to expose for Coder.
78
106
service :
79
107
# coder.service.enable -- Whether to create the Service object.
You can’t perform that action at this time.
0 commit comments