Skip to content

Commit

Permalink
falco - add psp configuration capabilities (helm#14813)
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime VISONNEAU <[email protected]>
  • Loading branch information
mvisonneau authored and davidkarlsen committed Jul 3, 2019
1 parent 2d27eca commit d214d20
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/falco/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: falco
version: 0.7.10
version: 0.8.0
appVersion: 0.15.3
description: Falco
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/falco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The following table lists the configurable parameters of the Falco chart and the
| `fakeEventGenerator.enabled` | Run falco-event-generator for sample events | `false` |
| `fakeEventGenerator.replicas` | How many replicas of falco-event-generator to run | `1` |
| `daemonset.updateStrategy.type` | The updateStrategy for updating the daemonset | `RollingUpdate` |
| `podSecurityPolicy.create` | If true, create & use podSecurityPolicy | `false` |
| `proxy.httpProxy` | Set the Proxy server if is behind a firewall | `` |
| `proxy.httpsProxy` | Set the Proxy server if is behind a firewall | `` |
| `proxy.noProxy` | Set the Proxy server if is behind a firewall | `` |
Expand Down
10 changes: 10 additions & 0 deletions stable/falco/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,14 @@ rules:
- /healthz/*
verbs:
- get
{{- if .Values.podSecurityPolicy.create }}
- apiGroups:
- extensions
resources:
- podsecuritypolicies
resourceNames:
- {{ template "falco.fullname" . }}
verbs:
- use
{{- end }}
{{- end }}
24 changes: 24 additions & 0 deletions stable/falco/templates/podsecuritypolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- if .Values.podSecurityPolicy.create}}
apiVersion: extensions/v1beta1
kind: PodSecurityPolicy
metadata:
name: {{ template "falco.fullname" . }}
labels:
app: {{ template "falco.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
privileged: true
hostNetwork: true
allowedCapabilities: ['*']
fsGroup:
rule: RunAsAny
runAsUser:
rule: RunAsAny
seLinux:
rule: RunAsAny
supplementalGroups:
rule: RunAsAny
volumes: ['*']
{{- end }}
4 changes: 4 additions & 0 deletions stable/falco/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ rbac:
# Create and use rbac resources
create: true

podSecurityPolicy:
# Create a podSecurityPolicy
create: false

serviceAccount:
# Create and use serviceAccount resources
create: true
Expand Down

0 comments on commit d214d20

Please sign in to comment.