falco - add psp configuration capabilities (#14813)

Signed-off-by: Maxime VISONNEAU <maxime.visonneau@gmail.com>
This commit is contained in:
Maxime VISONNEAU
2019-06-27 19:45:21 -07:00
committed by Kubernetes Prow Robot
parent c6ebf49b94
commit d98f440b68
5 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: falco
version: 0.7.10
version: 0.8.0
appVersion: 0.15.3
description: Falco
keywords:
+1
View File
@@ -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 | `` |
+10
View File
@@ -29,4 +29,14 @@ rules:
- /healthz/*
verbs:
- get
{{- if .Values.podSecurityPolicy.create }}
- apiGroups:
- extensions
resources:
- podsecuritypolicies
resourceNames:
- {{ template "falco.fullname" . }}
verbs:
- use
{{- end }}
{{- end }}
@@ -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
View File
@@ -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