diff --git a/config/examples/dashboards/kustomization.yaml b/config/examples/dashboards/kustomization.yaml index 1d3a222..7c8b8c1 100644 --- a/config/examples/dashboards/kustomization.yaml +++ b/config/examples/dashboards/kustomization.yaml @@ -31,3 +31,7 @@ configMapGenerator: namespace: monitoring files: - ./udproutes.json +- name: grafana-policies + namespace: monitoring + files: + - ./policies.json diff --git a/config/examples/enterprise/README.md b/config/examples/enterprise/README.md index 7efaad9..c6da202 100644 --- a/config/examples/enterprise/README.md +++ b/config/examples/enterprise/README.md @@ -72,10 +72,14 @@ There are 3 Gateways with various services attached. ```bash kind create cluster kubectl create -f ../../gateway-api/crd/standard/ +kubectl apply -f ../../kuadrant/crd/ kubectl create -f ./all.yaml kubectl replace --subresource=status -f ./all.yaml +kubectl apply -f ../../kuadrant/kuadrant.yaml +kubectl replace --subresource=status -f ../../kuadrant/kuadrant.yaml kubectl apply --server-side -f ../kube-prometheus/bundle_crd.yaml kubectl apply -f ../kube-prometheus/bundle.yaml +kubectl patch clusterrole kube-state-metrics --type=json -p "$(cat ../../kuadrant/clusterrole-patch.yaml)" kubectl -n monitoring wait --timeout=5m deployment/grafana --for=condition=Available kubectl -n monitoring port-forward service/grafana 3000:3000 > /dev/null & kubectl -n monitoring rollout status --watch --timeout=5m statefulset/prometheus-k8s diff --git a/config/examples/kube-prometheus/grafana_deployment_patch.yaml b/config/examples/kube-prometheus/grafana_deployment_patch.yaml index f773ae2..07550b7 100644 --- a/config/examples/kube-prometheus/grafana_deployment_patch.yaml +++ b/config/examples/kube-prometheus/grafana_deployment_patch.yaml @@ -36,10 +36,10 @@ - op: add path: /spec/template/spec/volumes/- value: - name: grafana-tlspolicy + name: grafana-policies configMap: defaultMode: 420 - name: grafana-tlspolicy + name: grafana-policies - op: add path: /spec/template/spec/volumes/- value: @@ -92,5 +92,5 @@ - op: add path: /spec/template/spec/containers/0/volumeMounts/- value: - name: grafana-tlspolicy - mountPath: /grafana-dashboard-definitions/0/grafana-tlspolicy + name: grafana-policies + mountPath: /grafana-dashboard-definitions/0/grafana-policies