Best practice: don't roll your own Kubernetes cluster and use a distribution like OpenShift[1].
They take care of providing, among others, a secure default configuration.
They take care of providing, among others, a secure default configuration.
>OpenShift runs whichever container you want with a random UUID, so unless the Docker image is prepared to work as a non-root user, it probably won't work due to permissions issues.
Source: https://engineering.bitnami.com/articles/running-non-root-co...
Edit: Not to mention your comment doesn't address half the article, which dives into security tangential to kubernetes itself such as AWS
Almost every Kubernetes security feature started in openshift and was moved upstream in some form, although a few protections haven’t made it because they are too specific or would complicate Kube.