Skip to content

Commit

Permalink
Merge pull request #22 from Kuadrant/bundle
Browse files Browse the repository at this point in the history
Add bundle yaml files for easier install
  • Loading branch information
Ygnas authored Sep 8, 2023
2 parents adb654f + d171d3c commit 433aaa7
Show file tree
Hide file tree
Showing 5 changed files with 72,292 additions and 4 deletions.
5 changes: 3 additions & 2 deletions examples/enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ kind create cluster
kubectl create -f ../../config/gateway-api/crd/standard/
kubectl create -f ./all.yaml
kubectl replace --subresource=status -f ./all.yaml
kustomize build ../kube-prometheus | docker run --rm -i ryane/kfilt -i kind=CustomResourceDefinition | kubectl apply --server-side -f -
kustomize build ../kube-prometheus | docker run --rm -i ryane/kfilt -x kind=CustomResourceDefinition | kubectl apply -f -
kubectl apply --server-side -f ../kube-prometheus/bundle_crd.yaml
kubectl apply -f ../kube-prometheus/bundle.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
5 changes: 3 additions & 2 deletions examples/kube-prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ First, apply the various monitoring CustomResourceDefinitions, giving them time
to reconcile fully:

```bash
kustomize build . | docker run --rm -i ryane/kfilt -i kind=CustomResourceDefinition | kubectl apply --server-side -f -
kubectl apply --server-side -f ./bundle_crd.yaml
```

Then apply the full set of monitoring stack resources:

```bash
kustomize build . | docker run --rm -i ryane/kfilt -x kind=CustomResourceDefinition | kubectl apply -f -
kubectl apply -f ./bundle.yaml
```

To access the dashboards in Grafana, use the port-forward command:
Expand All @@ -30,6 +30,7 @@ The Gateway API State dashboards will be available in the 'Default' folder.
To access the prometheus UI, use this port-forward command:

```bash
kubectl -n monitoring rollout status --watch --timeout=5m statefulset/prometheus-k8s
kubectl -n monitoring port-forward service/prometheus-k8s 9090:9090 &
```

Expand Down
6 changes: 6 additions & 0 deletions examples/kube-prometheus/bundle-README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Steps to update the bundle files

```shell
kustomize build . | docker run --rm -i ryane/kfilt -i kind=CustomResourceDefinition > bundle_crd.yaml
kustomize build . | docker run --rm -i ryane/kfilt -x kind=CustomResourceDefinition > bundle.yaml
```
Loading

0 comments on commit 433aaa7

Please sign in to comment.