Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdp: set ClusterFirstWithHostNet for node sensor #352

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions helm-charts/falcon-sensor/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ metadata:
app.kubernetes.io/name: {{ include "falcon-sensor.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{ if .Values.container.enabled }}
{{- if .Values.container.enabled }}
app.kubernetes.io/component: "container_sensor"
{{ else if .Values.node.enabled }}
app.kubernetes.io/component: "kernel_sensor"
{{ end }}
{{ end -}}
crowdstrike.com/provider: crowdstrike
helm.sh/chart: {{ include "falcon-sensor.chart" . }}
rules:
- apiGroups:
- ""
resources:
- secrets
{{- if and .Values.node.enabled }}
{{- if .Values.node.enabled }}
- pods
- services
- nodes
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/falcon-sensor/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ metadata:
app.kubernetes.io/name: {{ include "falcon-sensor.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{ if .Values.container.enabled }}
{{- if .Values.container.enabled }}
app.kubernetes.io/component: "container_sensor"
{{ else if .Values.node.enabled }}
app.kubernetes.io/component: "kernel_sensor"
{{ end }}
{{ end -}}
crowdstrike.com/provider: crowdstrike
helm.sh/chart: {{ include "falcon-sensor.chart" . }}
subjects:
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/falcon-sensor/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
app.kubernetes.io/name: {{ include "falcon-sensor.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.container.enabled }}
app.kubernetes.io/component: "container_sensor"
{{ else if .Values.node.enabled }}
app.kubernetes.io/component: "kernel_sensor"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated to the PR, but it was missing.

{{ end -}}
crowdstrike.com/provider: crowdstrike
helm.sh/chart: {{ include "falcon-sensor.chart" . }}
data:
Expand Down
1 change: 1 addition & 0 deletions helm-charts/falcon-sensor/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ spec:
priorityClassName: {{ include "falcon-sensor.priorityClassName" . }}
{{- end }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
hostIPC: true
{{- end }}
Loading