feat(kyverno): add clusterpolicy role and rolebinding

cluster policy creates the role and rolebindings for prometheuse to monitor the ns

!1
This commit is contained in:
2023-09-26 06:27:20 +09:30
parent 899c6a3d78
commit c8ea929873
3 changed files with 136 additions and 2 deletions

View File

@ -72,8 +72,9 @@ nfc_monitoring:
name: grafana/loki
tag: 2.7.4
namespace: loki
namespace: logging
# service name and port are used for the connection to your loki instance
service_name: loki-gateway
service_port: 80
@ -152,6 +153,11 @@ nfc_monitoring:
# - olm
# - operators
# Deploy a generate policy for kyverno to create Role and RoleBindings
# for the prometheus service account so it can monitor
# new/existing namespaces
kyverno_role_policy: true
storage:
volumeClaimTemplate:
spec:
@ -212,7 +218,7 @@ nfc_monitoring:
matchLabels:
app: rook-ceph-mgr
# Add sidcar to grafana pod to load dashboards from configMap
# Add sidecar to grafana pod to load dashboards from configMap
dashboard_sidecar:
enabled: true