Skip to content
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

Add securityContext to deployment #146

Merged
merged 2 commits into from
Sep 20, 2019
Merged

Conversation

mindjiver
Copy link
Contributor

Make sure we can run Razee Dashboard on a Kubernetes system
where we don't allow containers to execute as root user.

Peter Jönsson added 2 commits September 20, 2019 14:14
Make sure we can run Razee Dashboard on a Kubernetes system
where we don't allow containers to execute as root user.
Override the default workingDir for the container
(/root) to enable running this deployment in a
Kubernetes environment where this is not allowed
via the Pod Security policy 'MustRunAsNonRoot'.
@@ -30,6 +30,9 @@ items:
app: razeedash
name: razeedash
spec:
securityContext:
fsGroup: 999
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious. We've been using 1000 for the GIDs and UIDs. Any reason you use 999 or is it just habit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a habit, maybe a bad one. Sorry did not see this message until now

@mckaymic mckaymic merged commit 7dcb81f into razee-io:master Sep 20, 2019
@mindjiver mindjiver deleted the logdna branch October 4, 2019 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants