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

Specifiy/Create a service account used by the created SolrCloud #264

Closed
thomaswoeckinger opened this issue Apr 23, 2021 · 4 comments · Fixed by #283
Closed

Specifiy/Create a service account used by the created SolrCloud #264

thomaswoeckinger opened this issue Apr 23, 2021 · 4 comments · Fixed by #283
Labels
custom kube options Adding options related to customizing parts of the default Kubernetes resources.
Milestone

Comments

@thomaswoeckinger
Copy link

Currently there is no way to specify a serviceAccount or serviceAccountName to be used by the created SolrCloud. This makes it impossible to run on OKD, because default security constraints deny the usage of fsGroup 8983.

So there should be at least a parameter to configure the serviceAccount.

@HoustonPutman
Copy link
Contributor

Good feature request! But we should shoot for v0.4.0 since there is a feature freeze for v0.3.0.

@HoustonPutman HoustonPutman added this to the main (v0.4.0) milestone Apr 23, 2021
@HoustonPutman HoustonPutman added zookeeper Related to Zookeeper or the Zookeeper Operator and removed zookeeper Related to Zookeeper or the Zookeeper Operator labels Apr 23, 2021
@HoustonPutman
Copy link
Contributor

@thomaswoeckinger I'm working on the custom serviceAccountName now, and that is very straightforward.

This makes it impossible to run on OKD, because default security constraints deny the usage of fsGroup 8983.

This might be harder to fix. The reason we use fsGroup 8983 is because the Solr docker image uses the 8983 user to own /var/solr (the data directory)

I might be wrong here, but I believe that's why it was fsGroup has always been set to 8983. We can definitely look at changing that in the future, I want the solr-operator to be fully OKD compatible, but it will be more work than making the serviceAccountName configurable.

Are you able to get OKD to work with the 8983 fsGroup with a custom service account?

@HoustonPutman HoustonPutman added the custom kube options Adding options related to customizing parts of the default Kubernetes resources. label Jul 14, 2021
@thomaswoeckinger
Copy link
Author

thomaswoeckinger commented Jul 16, 2021 via email

@HoustonPutman
Copy link
Contributor

Good to know.

So in the linked PR I added the ability to create the necessary ServiceAccount when deploying the solr helm chart, but the operator itself does not create the serviceAccount. We can change that in the future, but I think it's fine to start with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
custom kube options Adding options related to customizing parts of the default Kubernetes resources.
Projects
None yet
2 participants