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-provisioner
andkubectl config set-context $(kubectl config current-context) --namespace efs-provisioner
to create and use a dedicated namespace. - Use
kubectl apply -f efs-provisioner-psp.yaml
to 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
securityContext
to the Pod specification so thatfsGroup
andrunAsUser
are both set to 2000. - Comment out the entire
initContainer
block.
Use kubectl apply -f helm-manifest.yaml
to deploy.