Skip to content

Commit eb821fb

Browse files
author
iru
committed
doc: add self-baked helm k8s nodeSelector and toleration usage example
1 parent e29c7af commit eb821fb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

examples-internal/use-cases-self-baked/multiple-accounts-k8s-threat.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ From the [Secure for cloud AWS available features](https://docs.sysdig.com/en/do
3232
<!--
3333
Skip step 4 and remove `aws_access_key_id` and `aws_secret_access_key` parameters from `org_k8s_threat_reuse_cloudtrail` module
3434
-->
35+
- [X] be able to parametrize `nodeSelector` and `tolerations` on the [k8s deployment configuration](https://charts.sysdig.com/charts/cloud-connector/#configuration)
3536

3637
## Solution
3738

@@ -188,6 +189,31 @@ resource "helm_release" "cloud_connector" {
188189
name = "aws.region"
189190
value = "<REGION>"
190191
}
192+
193+
set {
194+
name = "nodeSelector.<NODE_SELECTOR_LABEL>"
195+
value = "<NODE_SELECTOR_LABEL_VALUE>"
196+
}
197+
198+
set {
199+
name = "tolerations[0].key"
200+
value = "<TOLERATION_KEY>"
201+
}
202+
203+
set {
204+
name = "tolerations[0].operator"
205+
value = "<TOLERATION_OPERATOR>"
206+
}
207+
208+
set {
209+
name = "tolerations[0].value"
210+
value = "<TOLERATION_VALUE>"
211+
}
212+
213+
set {
214+
name = "tolerations[0].effect"
215+
value = "<TOLERATION_EFFECT>"
216+
}
191217
192218
values = [
193219
<<CONFIG

0 commit comments

Comments
 (0)