I've installed microk8s on Ubuntu to have a simple Kubernetes cluster for test purposes.
I have a usecase where I have to execute a command in a container (in a kubernetes pod) with another user than the one which is used to run the container.
Since kubectl does not provide such a possibility, the workaround for docker environment is to use docker exec -u. But the Kubernetes cluster installed by microk8s does not use docker as container runtime, but only containerd.
I did not find a possibility to execute a command (as it is possible with docker) in a container as another user with containerd's ctr cli.
Is there a possibility?