Introduction
This article will walk you through how you can run the on-prem helm init container as non-root.
Process
You need to add the below lines to every component to run the container as non-root:
podSecurityContext:
runAsUser: 65534
runAsNonRoot: true
Example:
platform:
access-control:
podSecurityContext:
runAsUser: 65534
runAsNonRoot: true
change-data-capture:
podSecurityContext:
runAsUser: 65534
runAsNonRoot: true
....