diff --git a/rook-ceph/configs/cluster/cluster.yaml b/rook-ceph/configs/cluster/cluster.yaml index f713beb53e07be9ac2092c41658d627ffe734d3c..f382c5f7b006c4b882df216064eb1ecf20ca9e23 100644 --- a/rook-ceph/configs/cluster/cluster.yaml +++ b/rook-ceph/configs/cluster/cluster.yaml @@ -12,6 +12,8 @@ spec: dashboard: enabled: true ssl: true + prometheusEndpoint: http://10.136.126.180:30900 + prometheusEndpointSSLVerify: true mon: count: 3 diff --git a/rook-ceph/setup_rook_ceph.txt b/rook-ceph/setup_rook_ceph.txt index 7fdef077b68964b59365dada13298b127eefa896..97d57ba92cc9ed5936f1e08f04d13d9a463ba567 100644 --- a/rook-ceph/setup_rook_ceph.txt +++ b/rook-ceph/setup_rook_ceph.txt @@ -15,6 +15,27 @@ kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- bash helm get manifest rook-ceph -n rook-ceph +Monitoring - Prometheus + +apt-get install git +git clone --single-branch --branch v1.17.0 https://github.com/rook/rook.git +cd rook/deploy/examples/monitoring +kubectl apply -f service-monitor.yaml +kubectl apply -f exporter-service-monitor.yaml +kubectl apply -f prometheus.yaml +kubectl apply -f prometheus-service.yaml +kubectl -n rook-ceph get pod prometheus-rook-prometheus-0 +echo "http://$(kubectl -n rook-ceph -o jsonpath={.status.hostIP} get pod prometheus-rook-prometheus-0):30900" + +Editer yaml CRD cluster avec : + +spec: + dashboard: + prometheusEndpoint: http://192.168.61.204:30900 + prometheusEndpointSSLVerify: true + +echo "http://$(kubectl -n rook-ceph -o jsonpath={.status.hostIP} get pod prometheus-rook-prometheus-0):30900" + Dashboard kubectl -n rook-ceph get secret rook-ceph-dashboard-password -o jsonpath="{.data.password}" | base64 -d && echo