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

Allow flexible configuration of container affinity #200

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 1 addition & 1 deletion helm-charts/falcon-sensor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.19.1
version: 1.19.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/falcon-sensor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ platform purpose-built to stop breaches via a unified set of cloud-delivered
technologies that prevent all types of attacks — including malware and much
more.

# Kubernetes Cluster Compatability
# Kubernetes Cluster Compatibility

The Falcon Helm chart has been tested to deploy on the following Kubernetes distributions:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,10 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.container.affinity }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: node-role.kubernetes.io/master
operator: DoesNotExist
{{- toYaml .Values.container.affinity | nindent 6 }}
{{- end }}
{{- if .Values.container.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml .Values.container.topologySpreadConstraints | nindent 6 }}
Expand Down
17 changes: 17 additions & 0 deletions helm-charts/falcon-sensor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,23 @@ container:
matchLabels:
crowdstrike.com/component: crowdstrike-falcon-injector

# Configure affinity to restrict container to certain nodes
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: node-role.kubernetes.io/master
operator: DoesNotExist

# Auto update the certificates every time there is an update
autoCertificateUpdate: true

Expand Down