Skip to content

Commit 53fc66d

Browse files
authored
Update tolerations doc with zsh fix (#604)
* Update tolerations doc with zsh fix
1 parent 069a2c4 commit 53fc66d

File tree

1 file changed

+24
-27
lines changed

1 file changed

+24
-27
lines changed

charts/logzio-monitoring/README.md

+24-27
Original file line numberDiff line numberDiff line change
@@ -195,36 +195,33 @@ To ensure that your pods can be scheduled on nodes with taints, you need to add
195195
kubectl get nodes -o json | jq '"\(.items[].metadata.name) \(.items[].spec.taints)"'
196196
```
197197
2. **Add tolerations to the Helm install command**:
198-
You can add tolerations by using the --set flag in your helm install command. Replace the placeholders with your taint values.
199-
- For `logzio-logs-collector`:
200-
```shell
201-
--set logzio-logs-collector.tolerations[0].key="<<TAINT-KEY>>" \
202-
--set logzio-logs-collector.tolerations[0].operator="<<TAINT-OPERATOR>>" \
203-
--set logzio-logs-collector.tolerations[0].value="<<TAINT-VALUE>>" \
204-
--set logzio-logs-collector.tolerations[0].effect="<<TAINT-EFFECT>>"
205-
```
206-
- For `logzio-k8s-telemetry`:
207-
```shell
208-
--set logzio-k8s-telemetry.tolerations[0].key="<<TAINT-KEY>>" \
209-
--set logzio-k8s-telemetry.tolerations[0].operator="<<TAINT-OPERATOR>>" \
210-
--set logzio-k8s-telemetry.tolerations[0].value="<<TAINT-VALUE>>" \
211-
--set logzio-k8s-telemetry.tolerations[0].effect="<<TAINT-EFFECT>>"
212-
```
213-
- For `logzio-trivy`:
198+
You can add tolerations by using the --set flag in your helm install command. Replace the placeholders with your taint and subchart values.
199+
200+
Replace `<SUBCHART>` with one of the following options:
201+
- logzio-logs-collector
202+
- logzio-k8s-telemetry
203+
- logzio-trivy
204+
- logzio-k8s-events
205+
214206
```shell
215-
--set logzio-trivy.tolerations[0].key="<<TAINT-KEY>>" \
216-
--set logzio-trivy.tolerations[0].operator="<<TAINT-OPERATOR>>" \
217-
--set logzio-trivy.tolerations[0].value="<<TAINT-VALUE>>" \
218-
--set logzio-trivy.tolerations[0].effect="<<TAINT-EFFECT>>"
207+
--set '<SUBCHART>.tolerations[0].key=<<TAINT-KEY>>' \
208+
--set '<SUBCHART>.tolerations[0].operator=<<TAINT-OPERATOR>>' \
209+
--set '<SUBCHART>.tolerations[0].value=<<TAINT-VALUE>>' \
210+
--set '<SUBCHART>.tolerations[0].effect=<<TAINT-EFFECT>>'
219211
```
220-
- For `logzio-k8s-events`:
212+
213+
Replace `<<TAINT-KEY>>`, `<<TAINT-OPERATOR>>`, `<<TAINT-VALUE>>`, and `<<TAINT-EFFECT>>` with the appropriate values for your taints.
214+
215+
For example, if you need to tolerate the CriticalAddonsOnly:NoSchedule taint for the logzio-logs-collector after installation, you could use:
216+
221217
```shell
222-
--set logzio-k8s-events.tolerations[0].key="<<TAINT-KEY>>" \
223-
--set logzio-k8s-events.tolerations[0].operator="<<TAINT-OPERATOR>>" \
224-
--set logzio-k8s-events.tolerations[0].value="<<TAINT-VALUE>>" \
225-
--set logzio-k8s-events.tolerations[0].effect="<<TAINT-EFFECT>>"
218+
helm upgrade -n monitoring \
219+
--reuse-values \
220+
--set 'logzio-logs-collector.tolerations[0].key=CriticalAddonsOnly' \
221+
--set 'logzio-logs-collector.tolerations[0].operator=Exists' \
222+
--set 'logzio-logs-collector.tolerations[0].effect=NoSchedule' \
223+
logzio-monitoring logzio-helm/logzio-monitoring
226224
```
227-
Replace `<<TAINT-KEY>>`, `<<TAINT-OPERATOR>>`, `<<TAINT-VALUE>>`, and `<<TAINT-EFFECT>>` with the appropriate values for your taints.
228225
229226
By following these steps, you can ensure that your pods are scheduled on nodes with taints by adding the necessary tolerations to the Helm chart configuration.
230227
@@ -551,4 +548,4 @@ otel-operator:
551548
Set the `OTEL_GO_AUTO_TARGET_EXE` environment variable in your Go application to the path of the target executable.
552549
553550
> [!NOTE]
554-
> For further details, refer to the [OpenTelemetry Go Instrumentation documentation](https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/v0.21.0/docs/how-it-works.md#opentelemetry-go-instrumentation---how-it-works).
551+
> For further details, refer to the [OpenTelemetry Go Instrumentation documentation](https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/v0.21.0/docs/how-it-works.md#opentelemetry-go-instrumentation---how-it-works).

0 commit comments

Comments
 (0)