Orange-OpenSource / casskop

This Kubernetes operator automates the Cassandra operations such as deploying a new rack aware cluster, adding/removing nodes, configuring the C* and JVM parameters, upgrading JVM and C* versions, and many more...
https://orange-opensource.github.io/casskop/
Apache License 2.0
183 stars 54 forks source link

Manually setting fsGroup / runAsUser, causes Cassandra to run as root. #318

Closed collinbowers closed 3 years ago

collinbowers commented 3 years ago

Bug Report

When manually setting: fsGroup, runAsUser

Cassandra runs as root?

What did you do? runAsUser: 1001, fsGroup: 1001

What did you expect to see? Cassandra to come up normally.

What did you see instead? Under which circumstances? Running Cassandra as root user or group is not recommended - please start Cassandra using a different system user. If you really want to force running Cassandra as root, use -R command line options.

Environment

Possible Solution

Additional context When leaving user/group as default (999:1), this issue does not happen.