File tree 2 files changed +45
-1
lines changed
2 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 53
53
imagePullSecrets :
54
54
{{- toYaml . | nindent 8 }}
55
55
{{- end }}
56
+ {{- with .Values.affinity }}
57
+ affinity :
58
+ {{- toYaml . | nindent 8 }}
59
+ {{- end }}
60
+ {{- with .Values.tolerations }}
61
+ tolerations :
62
+ {{- toYaml . | nindent 8 }}
63
+ {{- end }}
56
64
{{- with .Values.nodeSelector }}
57
65
nodeSelector :
58
66
{{- toYaml . | nindent 8 }}
63
71
imagePullPolicy : {{ .Values.image.pullPolicy }}
64
72
command :
65
73
- /coder-logstream-kube
74
+ resources : {{ toYaml .Values.resources | nindent 12 }}
66
75
env :
67
76
- name : CODER_URL
68
77
value : {{ .Values.url }}
Original file line number Diff line number Diff line change @@ -46,9 +46,44 @@ serviceAccount:
46
46
# coder.serviceAccount.name -- The service account name
47
47
name : coder-logstream-kube
48
48
49
+ # resources -- The resources to request for the Deployment. These are optional
50
+ # and are not set by default.
51
+ resources :
52
+ {}
53
+ # limits:
54
+ # cpu: 500m
55
+ # memory: 500Mi
56
+ # requests:
57
+ # cpu: 2000m
58
+ # memory: 2000Mi
59
+
49
60
# nodeSelector -- Node labels for constraining the coder-logstream pod to specific nodes.
50
61
nodeSelector : {}
51
62
63
+ # affinity -- Allows specifying an affinity rule for the Deployment.
64
+ # The default rule prefers to schedule coder pods on different
65
+ # nodes, which is only applicable if coder.replicaCount is greater than 1.
66
+ affinity : {}
67
+ # podAntiAffinity:
68
+ # preferredDuringSchedulingIgnoredDuringExecution:
69
+ # - podAffinityTerm:
70
+ # labelSelector:
71
+ # matchExpressions:
72
+ # - key: app.kubernetes.io/instance: coder-logstream-kube
73
+ # operator: In
74
+ # values:
75
+ # - "true"
76
+ # topologyKey: kubernetes.io/hostname
77
+ # weight: 1
78
+
79
+ # tolerations -- Tolerations for tainted nodes.
80
+ # See: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
81
+ tolerations : {}
82
+ # - key: "key"
83
+ # operator: "Equal"
84
+ # value: "value"
85
+ # effect: "NoSchedule"
86
+
52
87
# labels -- The pod labels for coder-logstream-kube. See:
53
88
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
54
- labels : {}
89
+ labels : {}
You can’t perform that action at this time.
0 commit comments