k8ssandra / k8ssandra-operator

The Kubernetes operator for K8ssandra
https://k8ssandra.io/
Apache License 2.0
176 stars 79 forks source link

K8SSAND-1450 ⁃ Identify K8ssandra data planes with a dedicated env var #516

Open adutra opened 2 years ago

adutra commented 2 years ago

What is missing?

Currently we identify the K8ssandra control plane with the K8SSANDRA_CONTROL_PLANE env var, but there is no way to tell if a cluster is or is not a K8ssandra data plane.

Why do we need it?

Because of that, controllers such as Stargate, Reaper, Medusa are always enabled. But they are useless if the cluster is being used only as a control plane.

I suggest creating the K8SSANDRA_DATA_PLANE env var, maybe with a default of true.

┆Issue is synchronized with this Jira Story by Unito ┆Issue Number: K8OP-273

jsanda commented 2 years ago

But they are useless if the cluster is being used only as a control plane.

The control plane can also function as a data plane. Would that change with what you are proposing?

adutra commented 2 years ago

If the control plane is also a data plane, it should be started with:

Wdyt?