-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run Sample Apps as Non Root #61
Comments
Bump! It would nice to see restricted-friendly examples. Would prefer to see the guestbook example use a high-numbered port at the very least as it seems like the quickest path. |
Do you know how can we easily avoid this issue? As I am running the examples on Openshift 4 and I am getting all the time the error:
|
@hect1995 The simplest way I've found is just to bind to a high-numbered port in the sample application, and pass that through to the manifests. |
for those looking for quick fix for the solution which will give the service account |
When testing out the guestbook sample app on a cluster in a restricted environment, the deployment fails due to the guestbook container being run as root. It would be nice to specify a securityContext for the deployment since it should not need privileged permissions.
While this is a sample app, it would be nice to promote the practice of not running containers as root and also help to prevent running into the issue of the Getting Started tutorial not working in certain Kubernetes environments.
The text was updated successfully, but these errors were encountered: