Skip to content

Commit fde95ac

Browse files
authored
[Feature] Parameterize K8s Deployment's Tolerations in helm chart (#878)
1 parent 03a04ea commit fde95ac

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

chart/kube-arangodb/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,32 @@ NodeSelector for Deployment pods.
113113

114114
Default: `{}`
115115

116+
### `operator.tolerations`
117+
118+
Tolerations for Deployment pods.
119+
120+
There is built in configuration (can not be changed):
121+
```yaml
122+
tolerations:
123+
- key: "node.kubernetes.io/unreachable"
124+
operator: "Exists"
125+
effect: "NoExecute"
126+
tolerationSeconds: 5
127+
- key: "node.kubernetes.io/not-ready"
128+
operator: "Exists"
129+
effect: "NoExecute"
130+
tolerationSeconds: 5
131+
```
132+
133+
which can be extended by additional entries e.g.:
134+
```yaml
135+
tolerations:
136+
- key: devops
137+
operator: Exists
138+
effect: NoSchedule
139+
```
140+
Default (empty): `[]`
141+
116142
### `operator.replicaCount`
117143

118144
Replication count for Operator deployment.

chart/kube-arangodb/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,6 @@ spec:
181181
operator: "Exists"
182182
effect: "NoExecute"
183183
tolerationSeconds: 5
184+
{{- if .Values.operator.tolerations }}
185+
{{ toYaml .Values.operator.tolerations | indent 16 }}
186+
{{- end }}

chart/kube-arangodb/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@ operator:
4545
base: alpine:3.11
4646
metricsExporter: arangodb/arangodb-exporter:0.1.7
4747
arango: arangodb/arangodb:latest
48+
49+
tolerations: []
50+
4851
rbac:
4952
enabled: true

0 commit comments

Comments
 (0)