UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 679bb4ae authored by Micah Nagel's avatar Micah Nagel
Browse files

Merge branch 'fluent-bit-exception' into 'master'

add kyverno policy exceptions for fluentbit

Closes platform-one/big-bang/apps/core/fluentbit#35

See merge request platform-one/big-bang/bigbang!1685
parents 7d68559a 5c393c3a
No related branches found
No related tags found
1 merge request!1685Kyverno policy exceptions for fluentbit run as root
Pipeline #813659 passed with warnings
......@@ -182,7 +182,7 @@ policies:
require-non-root-group:
validationFailureAction: audit
{{- if or $deployRestic .Values.twistlock.enabled }}
{{- if or $deployRestic .Values.twistlock.enabled .Values.fluentbit.enabled }}
exclude:
any:
{{- if $deployRestic }}
......@@ -205,11 +205,21 @@ policies:
names:
- twistlock-defender-ds*
{{- end }}
{{- if .Values.fluentbit.enabled }}
# Fluentbit requires access to journalctl as well as /var/log. This would require modifications
# to the host operating system, creating a user, adding that user to the systemd-journal user group
# and then granting permissions recursively on /var/log.
- resources:
namespaces:
- logging
names:
- logging-fluent-bit*
{{- end }}
{{- end }}
require-non-root-user:
validationFailureAction: audit
{{- if or $deployRestic .Values.twistlock.enabled }}
{{- if or $deployRestic .Values.twistlock.enabled .Values.fluentbit.enabled }}
exclude:
any:
{{- if $deployRestic }}
......@@ -232,7 +242,16 @@ policies:
names:
- twistlock-defender-ds*
{{- end }}
{{- if .Values.fluentbit.enabled }}
# Fluentbit requires access to journalctl as well as /var/log. This would require modifications
# to the host operating system, creating a user, adding that user to the systemd-journal user group
# and then granting permissions recursively on /var/log.
- resources:
namespaces:
- logging
names:
- logging-fluent-bit*
{{- end }}
{{- end }}
{{- if .Values.twistlock.enabled }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment