diff --git a/charts/cortex-agent/README.md b/charts/cortex-agent/README.md index 55826c2..395a816 100644 --- a/charts/cortex-agent/README.md +++ b/charts/cortex-agent/README.md @@ -102,6 +102,7 @@ Even when using `--reuse-values` (which uses the values of the previous installa | `namespace.name` | Name of the namespace the agent resides on | Since 1.6.0 | `namespace.create` | Create/Don't create namespace for the agent | Since 1.6.0 | `daemonset.selinuxOptionsSpcT` | Set SELinux Options type to 'spc_t' | Since 1.8.0 +| `agent.sensorMode` | Enable sensor mode for lightweight cloud-native deployments | agent >= 9.3 Note: Helm requires commas in arguments to be escaped. diff --git a/charts/cortex-agent/templates/daemonset.yaml b/charts/cortex-agent/templates/daemonset.yaml index 4ac1b02..04beeb5 100644 --- a/charts/cortex-agent/templates/daemonset.yaml +++ b/charts/cortex-agent/templates/daemonset.yaml @@ -115,6 +115,10 @@ spec: - name: XDR_CLUSTER_TYPE value: "autopilot" {{- end }} + {{- if .Values.agent.sensorMode }} + - name: XDR_SENSOR_MODE + value: "1" + {{- end }} volumeMounts: diff --git a/charts/cortex-agent/values.yaml b/charts/cortex-agent/values.yaml index b9dd4d3..da1448e 100644 --- a/charts/cortex-agent/values.yaml +++ b/charts/cortex-agent/values.yaml @@ -58,6 +58,9 @@ agent: # Name of the kuberenetes cluster - optional clusterName: "" + # Enable sensor mode for lightweight cloud-native deployments + sensorMode: false + daemonset: # node labels to match pods with nodeSelector: