Skip to content

Commit 534cbe4

Browse files
authored
Merge pull request #23 from bjd2385/add-eks-default-custom-cmd
Add eks default custom cmd
2 parents ed2357e + 723f6c6 commit 534cbe4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ The following values settings for the helm chart are important to note, or expec
125125
* `image.version` :: The docker tag for the container image to install. It defaults to Threat Stack's latest offical docker image version for the agent at the time the chart was released. **NOTE:** Changing this could lead to pulling an unofficial, incorrect, or incompatible image, and is strongly discouraged.
126126
* `gkeContainerOs` :: If `true`, the Daemonset definition will be modified to execute commands for the agent to work correctly on GKE with ContainerOS nodes. Defaults to `false`
127127
* `gkeUbuntu` :: If `true`, the Daemonset definition will be modified to execute commands for the agent to work correctly on GKE with Ubuntu nodes. Defaults to `false`
128+
* `eksAmazon2` :: If `true`, the Daemonset definition will be modified to execute commands for the agent to work correctly on EKS with Amazon Linux 2 nodes. Defaults to `false`
128129
* `customDaemonsetCmd` :: Uncomment the `command` and `args` sub-attributes, and define them as desired to run custom commands in the daemonset.
129130
>>>
130131
**Warning:** Setting `customDaemonsetCmd` improperly can result in the Threat Stack agent not running correctly

templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ spec:
6262
{{- if eq .Values.gkeUbuntu true }}
6363
{{ toYaml .Values.gkeUbuntuCmd | indent 8 }}
6464
{{- end }}
65+
{{- if eq .Values.eksAmazon2 true }}
66+
{{ toYaml .Values.eksAmazon2Cmd | indent 8 }}
67+
{{- end }}
6568
{{- if .Values.customDaemonsetCmd }}
6669
{{ toYaml .Values.customDaemonsetCmd | indent 8 }}
6770
{{- end }}

values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ gkeUbuntuCmd:
1818
command: ["bash"]
1919
args: ["-c", "chroot /threatstackfs /bin/bash -c 'systemctl stop auditd; systemctl disable auditd'; eval tsagent setup $THREATSTACK_SETUP_ARGS; eval tsagent config --set $THREATSTACK_CONFIG_ARGS; sleep 5; /opt/threatstack/sbin/tsagentd -logstdout"]
2020

21+
# Using EKS Amazon Linux 2 nodes
22+
eksAmazon2: false
23+
eksAmazon2Cmd:
24+
command: ["bash"]
25+
args: ["-c", "chroot /threatstackfs /bin/bash -c 'service auditd stop; systemctl disable auditd'; eval tsagent setup $THREATSTACK_SETUP_ARGS; eval tsagent config --set $THREATSTACK_CONFIG_ARGS; sleep 5; /opt/threatstack/sbin/tsagentd -logstdout"]
26+
2127
# Uncomment and set child attributes to execute custom commands in your container
2228
customDaemonsetCmd: {}
2329
# command: [""]

0 commit comments

Comments
 (0)