-
Hello, I'm using .NET 8 jammy-chiseled image as a base image for my application which runs in company K8s. When I want to check how I mount volumes to pod container I use kubectl debug but when I run ls /proc/PID/root/ I get access denied because PID runs under user 1654. Does anybody know how to get to file system of running chiseled container in K8S? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
[Triage] You will need to access /proc/PID/root while running as a user with the same PID as your Chiseled container. It looks like |
Beta Was this translation helpful? Give feedback.
[Triage] You will need to access /proc/PID/root while running as a user with the same PID as your Chiseled container. It looks like
kubectl debug
has the option--as-uid
(source). You could try and use that in combination with using one of our runtime-deps images (likemcr.microsoft.com/dotnet/runtime-deps:8.0-jammy
) as the ephemeral container since it already contains the userapp
with the UID 1654 (you can also access this from outside the image by checking the environment variableAPP_UID
).