Skip to content

Commit

Permalink
feat(falco): allow adding additional volumes and volumeMounts to falc…
Browse files Browse the repository at this point in the history
…o daemonset

Signed-off-by: Mitch Hulscher <[email protected]>
  • Loading branch information
mhulscher authored and poiana committed Jan 12, 2021
1 parent 0ce1aa7 commit a3877ec
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 8 deletions.
7 changes: 7 additions & 0 deletions falco/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
This file documents all notable changes to Falco Helm Chart. The release
numbering uses [semantic versioning](http://semver.org).

## v1.5.8

### Minor Changes

* Add value `extraVolumes`, allow adding extra volumes to falco daemonset
* Add value `extraVolumeMounts`, allow adding extra volumeMounts to falco container in falco daemonset

## v1.5.6

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion falco/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: falco
version: 1.5.7
version: 1.5.8
appVersion: 0.26.2
description: Falco
keywords:
Expand Down
7 changes: 4 additions & 3 deletions falco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ The following table lists the configurable parameters of the Falco chart and the
| `nodeSelector` | The node selection constraint | `{}` |
| `affinity` | The affinity constraint | `{}` |
| `tolerations` | The tolerations for scheduling | `node-role.kubernetes.io/master:NoSchedule` |
| `scc.create` | Create OpenShift's Security Context Constraint | `true`
| `extraInitContainers` | A list of initContainers you want to add to the falco pod in the daemonset. | `[]`
|
| `scc.create` | Create OpenShift's Security Context Constraint | `true` |
| `extraInitContainers` | A list of initContainers you want to add to the falco pod in the daemonset. | `[]` |
| `extraVolumes` | A list of volumes you want to add to the falco daemonset. | `[]` |
| `extraVolumeMounts` | A list of volumeMounts you want to add to the falco container in the falco daemonset. | `[]` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

Expand Down
6 changes: 6 additions & 0 deletions falco/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ spec:
name: certs-volume
readOnly: true
{{- end }}
{{- if .Values.extraVolumeMounts }}
{{ toYaml .Values.extraVolumeMounts | indent 12 }}
{{- end }}
{{- if .Values.integrations.natsOutput.enabled }}
- name: {{ .Chart.Name }}-nats
image: sysdig/falco-nats:latest
Expand Down Expand Up @@ -290,5 +293,8 @@ spec:
- key: ca.crt
path: ca.crt
{{- end }}
{{- if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | indent 8 }}
{{- end }}
updateStrategy:
{{ toYaml .Values.daemonset.updateStrategy | indent 4 }}
22 changes: 18 additions & 4 deletions falco/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ falco:
- /etc/falco/falco_rules.local.yaml
- /etc/falco/k8s_audit_rules.yaml
- /etc/falco/rules.d
# - /etc/falco/rules.optional.d

# If true, the times displayed in log messages and output messages
# will be in ISO 8601. By default, times are displayed in the local
Expand Down Expand Up @@ -272,7 +273,8 @@ falco:
grpcOutput:
enabled: false

customRules: {}
customRules:
{}
# Although Falco comes with a nice default rule set for detecting weird
# behavior in containers, our users are going to customize the run-time
# security rule sets or policies for the specific container images and
Expand Down Expand Up @@ -321,7 +323,6 @@ integrations:
aws_secret_access_key: ""
aws_default_region: ""


# If GCloud Pub/Sub integration is enabled, Falco will be configured to use this
# integration as file_output and sets the following values:
# * json_output: true
Expand All @@ -336,7 +337,6 @@ integrations:
credentialsData: ""
projectID: ""


# certificates used by webserver and grpc server
# paste certificate content or use helm with --set-file
certs:
Expand All @@ -346,7 +346,6 @@ certs:
ca:
crt: ""


# Allow Falco to run on Kubernetes 1.6 masters.
tolerations:
- effect: NoSchedule
Expand All @@ -358,3 +357,18 @@ scc:

# Add initContainers to Falco pod
extraInitContainers: []

# Add extra volumes to Falco daemonset
extraVolumes: []
# - name: optional-rules-volume
# configMap:
# name: falco-rules-optional
# optional: true
# items:
# - key: falco_rules.optional.yaml
# path: falco_rules.optional.yaml

# Add extra volumeMounts to Falco container in Falco daemonset
extraVolumeMounts: []
# - mountPath: /etc/falco/rules.optional.d
# name: optional-rules-volume

0 comments on commit a3877ec

Please sign in to comment.