Modified version of the Kubernetes efs-provisioner to run as non-root user.
Deployment is based on the official Helm chart.
Before deploying, the following steps are required:
- Use
kubectl create namespace efs-provisionerandkubectl config set-context $(kubectl config current-context) --namespace efs-provisionerto create and use a dedicated namespace. - Use
kubectl apply -f efs-provisioner-psp.yamlto create the requiredPodSecurityPolicy.
After modifying values.yaml to use your efsFileSystemId and awsRegion, use helm template efs-provisioner stable/efs-provisioner -f values.yaml > helm-manifest.yaml to generate a manifest file. From there, a couple of additional modifications are required:
- Add
securityContextto the Pod specification so thatfsGroupandrunAsUserare both set to 2000. - Comment out the entire
initContainerblock.
Use kubectl apply -f helm-manifest.yaml to deploy.