helm: add optional monitoring RBAC to operator chart
An older version of the Helm chart always installed RBAC permissions for
enabling monitoring. In an effort to reduce the privileges Rook uses by
default, they were removed. We need to still include the monitoring RBAC
optionally since the change could break some users.
Co-authored-by: Mathieu Parent <mathieu.parent@insee.fr>
Co-authored-by: Blaine Gardner <blaine.gardner@redhat.com>
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit e3be7a30ba)
This commit is contained in:
1 parent
df6167d792
commit
5ca0e752ef
5 files changed
+22
-1
No files matched your search
@@ -319,6 +319,12 @@ step to upgrade the Prometheus RBAC resources as well.
|
||||
kubectl apply -f deploy/examples/monitoring/rbac.yaml
|
||||
```
|
||||
|
||||
If you use the `rook-ceph` operator Helm chart, you should also add `monitoring.enabled` to
|
||||
your Helm values with two caveats:
|
||||
- this is unnecessary if you deploy monitoring RBAC from `deploy/examples/monitoring/rbac.yaml`
|
||||
- this is unnecessary if you use `rook-ceph-cluster` charts exclusively outside of the `rook-ceph`
|
||||
operator namespace.
|
||||
|
||||
### **2. Update Ceph CSI versions**
|
||||
|
||||
> Automatically updated if you are upgrading via the helm chart
|
||||
|
||||
@@ -148,6 +148,7 @@ The following tables lists the configurable parameters of the rook-operator char
|
||||
| `admissionController.tolerations` | Array of tolerations in YAML format which will be added to admission controller deployment. | <none> |
|
||||
| `admissionController.nodeAffinity` | The node labels for affinity of the admission controller deployment (***) | <none> |
|
||||
| `allowMultipleFilesystems` | **(experimental in Octopus (v15))** Allows multiple filesystems to be deployed to a Ceph cluster. | `false` |
|
||||
| `monitoring.enabled` | Create necessary RBAC rules for Rook to integrate with Prometheus monitoring in the operator namespace. Requires Prometheus to be pre-installed. | `false` |
|
||||
|
||||
* * * `nodeAffinity` and `*NodeAffinity` options should have the format `"role=storage,rook; storage=ceph"` or `storage=;role=rook-example` or `storage=;` (_checks only for presence of key_)
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ These should be scoped to the namespace where the CephCluster is located.
|
||||
*/}}
|
||||
|
||||
{{- define "library.cluster.monitoring.roles" -}}
|
||||
# ---
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
|
||||
@@ -26,8 +26,18 @@ roles
|
||||
---
|
||||
{{ include "library.cluster.roles" . }}
|
||||
|
||||
{{- if .Values.monitoring.enabled }}
|
||||
---
|
||||
{{ include "library.cluster.monitoring.roles" . }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
rolebindings
|
||||
*/}}
|
||||
---
|
||||
{{ include "library.cluster.rolebindings" . }}
|
||||
|
||||
{{- if .Values.monitoring.enabled }}
|
||||
---
|
||||
{{ include "library.cluster.monitoring.rolebindings" . }}
|
||||
{{- end }}
|
||||
@@ -353,3 +353,8 @@ admissionController:
|
||||
# operator: Exists
|
||||
# effect: NoSchedule
|
||||
# nodeAffinity: key1=value1,value2; key2=value3
|
||||
|
||||
monitoring:
|
||||
# requires Prometheus to be pre-installed
|
||||
# enabling will also create RBAC rules to allow Operator to create ServiceMonitors
|
||||
enabled: false
|
||||
Reference in new issue
Block a user