UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 5c393c3a authored by Rob Ferguson's avatar Rob Ferguson Committed by Micah Nagel
Browse files

add kyverno policy exceptions for fluentbit

parent 7d68559a
No related branches found
No related tags found
1 merge request!1685Kyverno policy exceptions for fluentbit run as root
......@@ -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