Replies: 1 comment
-
Thanks so much for this input, @orenzp ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
In our company, we require to run all k8s pods as NonRootUser, Due to this I tried to run the DFM container as NonRoot using Kubernetes
spec.securityContext.runAsNonRoot
.The issue is that DotNet container images don't have a dedicated user for the applications like Node containers have. I found the following article which explains how to configure DotNet containers to run the applications as a NonRoot user.
Hardening an ASP.NET container running on Kubernetes
I updated the Dockerfile given in the durablefunctionsmonitor.dotnetbackend to look like the following:
I updated the DFM deployment manifest with the following settings and change the image to point to our private continer registry.
This solved my issues.
Beta Was this translation helpful? Give feedback.
All reactions