Skip to content

Commit

Permalink
kustomise
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Lawton committed Oct 8, 2024
1 parent fb87772 commit 27a9087
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 30 deletions.
1 change: 1 addition & 0 deletions config/observability/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ If however you have run `make local-setup` and would like to install the observa
```bash
./bin/kustomize build ./config/observability/| docker run --rm -i docker.io/ryane/kfilt -i kind=CustomResourceDefinition | kubectl apply --server-side -f -
./bin/kustomize build ./config/observability/| docker run --rm -i docker.io/ryane/kfilt -x kind=CustomResourceDefinition | kubectl apply -f -
./bin/kustomize build ./config/observability/prometheus/monitors/envoy | kubectl apply -f -
./bin/kustomize build ./config/thanos | kubectl apply -f -
./bin/kustomize build ./examples/dashboards | kubectl apply -f -
./bin/kustomize build ./examples/alerts | kubectl apply -f -
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resources:
- pod-monitor-envoy.yaml
- service-monitor.yaml

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: envoy-stats
namespace: envoy-gateway-system
spec:
namespaceSelector:
matchNames:
Expand All @@ -12,3 +13,4 @@ spec:
podMetricsEndpoints:
- port: http-envoy-prom
path: /stats/prometheus

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: envoy-gateway
namespace: envoy-gateway-system
spec:
namespaceSelector:
matchNames:
- envoy-gateway-system
selector:
matchLabels:
control-plane: envoy-gateway
endpoints:
- port: metrics

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resources:
- service-monitor-istiod.yaml
- telemetry.yaml

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: istiod
namespace: istio-system
spec:
namespaceSelector:
matchNames:
Expand All @@ -11,3 +12,4 @@ spec:
app: istiod
endpoints:
- port: http-monitoring

Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ spec:
value: "request.host"
request_url_path:
value: "request.url_path"

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 4 additions & 3 deletions hack/quickstart-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ KUADRANT_CERT_MANAGER_KUSTOMIZATION="${KUADRANT_REPO}/config/dependencies/cert-m
KUADRANT_METALLB_KUSTOMIZATION="${KUADRANT_REPO}/config/metallb?ref=${KUADRANT_REF}"
KUADARNT_THANOS_KUSTOMIZATION="${KUADRANT_REPO}/config/thanos?ref=${KUADRANT_REF}"
KUADARNT_OBSERVABILITY_KUSTOMIZATION="${KUADRANT_REPO}/config/observability?ref=${KUADRANT_REF}"
KUADARNT_OBSERVABILITY_ISTIO_KUSTOMIZATION="${KUADRANT_REPO}/config/observability/promtheus/monitors/base?ref=${KUADRANT_REF}"
KUADARNT_OBSERVABILITY_ISTIO_KUSTOMIZATION="${KUADRANT_REPO}/config/observability/prometheus/monitors/istio?ref=${KUADRANT_REF}"
KUADRANT_DASHBOARDS_KUSTOMIZATION="${KUADRANT_REPO}/examples/dashboards?ref=${KUADRANT_REF}"
KUADRANT_ALERTS_KUSTOMIZATION="${KUADRANT_REPO}/examples/alerts?ref=${KUADRANT_REF}"
MGC_REPO="github.com/${KUADRANT_ORG}/multicluster-gateway-controller.git"
Expand Down Expand Up @@ -461,8 +461,9 @@ fi

# Install observability stack
info "Installing observability stack in ${KUADRANT_CLUSTER_NAME}..."
kubectl kustomize ${KUADARNT_OBSERVABILITY_KUSTOMIZATION} | kubectl kustomize ${KUADARNT_OBSERVABILITY_ISTIO_KUSTOMIZATION} | $CONTAINER_RUNTIME_BIN run --rm -i docker.io/ryane/kfilt -i kind=CustomResourceDefinition | kubectl apply --server-side -f -
kubectl kustomize ${KUADARNT_OBSERVABILITY_KUSTOMIZATION} | kubectl kustomize ${KUADARNT_OBSERVABILITY_ISTIO_KUSTOMIZATION} | $CONTAINER_RUNTIME_BIN run --rm -i docker.io/ryane/kfilt -x kind=CustomResourceDefinition | kubectl apply -f -
kubectl kustomize ${KUADARNT_OBSERVABILITY_KUSTOMIZATION} | $CONTAINER_RUNTIME_BIN run --rm -i docker.io/ryane/kfilt -i kind=CustomResourceDefinition | kubectl apply --server-side -f -
kubectl kustomize ${KUADARNT_OBSERVABILITY_KUSTOMIZATION} | $CONTAINER_RUNTIME_BIN run --rm -i docker.io/ryane/kfilt -x kind=CustomResourceDefinition | kubectl apply -f -
kubectl kustomize ${KUADARNT_OBSERVABILITY_ISTIO_KUSTOMIZATION} | kubectl apply --server-side -f -
kubectl kustomize ${KUADRANT_DASHBOARDS_KUSTOMIZATION} | kubectl apply --server-side -f -
kubectl kustomize ${KUADRANT_ALERTS_KUSTOMIZATION} | kubectl apply --server-side -f -
success "observability stack installed successfully."
Expand Down

0 comments on commit 27a9087

Please sign in to comment.