Provide realistic values for running fluent-bit as a non-root user.
The security context comments in values.yaml are not usable:
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
Issues:
- The user and group ids do not exist in the fluent-bit image. AFAICT the image is based on distroless/cc-debian11 which runs as root - though it does define a
nonroot user id (65532:65532).
- All the files in the image are owned by 0:0 (root) so runAsNonRoot probably won't suffice, at least not without some additional capabilities, such as FOWNER
- Typical deployments will enable storage.path (e.b., /var/fluent-bit/state/flb-storage/), which appears to need a hostPath
Related:
Provide realistic values for running fluent-bit as a non-root user.
The security context comments in values.yaml are not usable:
Issues:
nonrootuser id (65532:65532).Related: