Skip to content

Commit

Permalink
fix policies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ygnas committed Oct 20, 2023
1 parent 243ae51 commit 32e031c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions config/examples/dashboards/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ configMapGenerator:
namespace: monitoring
files:
- ./udproutes.json
- name: grafana-policies
namespace: monitoring
files:
- ./policies.json
4 changes: 4 additions & 0 deletions config/examples/enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions config/examples/kube-prometheus/grafana_deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 32e031c

Please sign in to comment.