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

Operator Scope #1405

Open
sunnyyip opened this issue Sep 12, 2023 · 2 comments
Open

Operator Scope #1405

sunnyyip opened this issue Sep 12, 2023 · 2 comments

Comments

@sunnyyip
Copy link

Hello maintainers,

I have some questions regarding the operator.scope parameter per the README.

I'm using helm.sh/chart: kube-arangodb-1.2.32

  1. Is the default "legacy" scoped to the cluster - i.e. it oversees all ArangoDeployment kind across all namespaces?

If so, does it require additional permission/rbac config for it to work apart from the clusterrole/binding that comes with the chart?
I ask because I deployed the operator to a dedicated (common) namespace and created ArangoDeployment in another (app) namespace but the operator doesn't see or take no action on the ArangoDeployment object. Nothing new nor error is written to the logs.

If not, how does it work compare to the "namespaced" scope?

  1. What is the recommended scope setting for a production multi-tenant K8s cluster? i.e. a cluster that will run multiple Arango DBs for different apps in its own namespace.

Thank you

@ajanikow
Copy link
Collaborator

Hello!

  • Legacy mode is the old mode, which required Cluster and Namespaced roles (for example RO access to Nodes, Volumes etc). This mode still manages deployments only in the scope of a single Namespace. It requires access to the ClusterRole.
  • Namespaced mode uses only Namespace resources (can be deployed by the use limited to single Namespace). It does not require access to the ClusterRole.

Both scopes have the same functionality (use different mechanisms) and do not have an influence on code (The operator discovers access in the runtime, and is able to adjust to the RBAC changes).

This will be changed to only 'namespaced' in the next few releases.

Best,
Adam.

@sunnyyip
Copy link
Author

sunnyyip commented Sep 13, 2023

Thanks @ajanikow for the explanation! It sounds like "namespaced" scope is the way to go for new deployment anticipating the change to that model in near future.

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

No branches or pull requests

2 participants