Skip to content

Commit fb87772

Browse files
committed
kustomise-wip
1 parent 2e66854 commit fb87772

File tree

9 files changed

+47
-6
lines changed

9 files changed

+47
-6
lines changed

config/observability/kustomization.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ kind: Kustomization
44
resources:
55
- github.com/prometheus-operator/kube-prometheus?ref=release-0.13
66
- github.com/Kuadrant/gateway-api-state-metrics/config/kuadrant?ref=0.5.0
7-
- prometheus/monitors/service-monitor-istiod.yaml
8-
97
# We're using the additionalScrapeConfigs field of the Prometheus CR
108
# here to read existing prometheus scrape annotations on pods.
119
# Ideally this would be done via another PodMonitor or ServicMonitor,
@@ -20,7 +18,6 @@ resources:
2018
- prometheus/monitors/service-monitor-authorino-operator.yaml
2119
- prometheus/monitors/service-monitor-dns-operator.yaml
2220

23-
- prometheus/telemetry.yaml
2421

2522
patchesStrategicMerge:
2623
- rbac/cluster_role.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resources:
2+
- service-monitor-istiod.yaml
3+
- telemetry.yaml
4+

config/observability/prometheus/monitors/service-monitor-istiod.yaml renamed to config/observability/prometheus/monitors/base/service-monitor-istiod.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: monitoring.coreos.com/v1
22
kind: ServiceMonitor
33
metadata:
44
name: istiod
5-
namespace: istio-system
65
spec:
76
namespaceSelector:
87
matchNames:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
resources:
2+
- ../../base
3+
- pod-monitor-envoy.yaml
4+
5+
namespace: gateway-system
6+
7+
patchesStrategicMerge:
8+
- service-monitor.yaml
9+
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: monitoring.coreos.com/v1
2+
kind: PodMonitor
3+
metadata:
4+
name: envoy-stats
5+
spec:
6+
namespaceSelector:
7+
matchNames:
8+
- gateway-system
9+
selector:
10+
matchLabels:
11+
app: kuadrant-ingressgateway
12+
podMetricsEndpoints:
13+
- port: http-envoy-prom
14+
path: /stats/prometheus
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: monitoring.coreos.com/v1
2+
kind: ServiceMonitor
3+
metadata:
4+
name: istiod
5+
spec:
6+
namespaceSelector:
7+
matchNames:
8+
- gateway-system
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: telemetry.istio.io/v1alpha1
2+
kind: Telemetry
3+
metadata:
4+
name: namespace-metrics
5+
namespace: gateway-system
6+
spec:
7+
metrics:

hack/quickstart-setup.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ KUADRANT_CERT_MANAGER_KUSTOMIZATION="${KUADRANT_REPO}/config/dependencies/cert-m
8484
KUADRANT_METALLB_KUSTOMIZATION="${KUADRANT_REPO}/config/metallb?ref=${KUADRANT_REF}"
8585
KUADARNT_THANOS_KUSTOMIZATION="${KUADRANT_REPO}/config/thanos?ref=${KUADRANT_REF}"
8686
KUADARNT_OBSERVABILITY_KUSTOMIZATION="${KUADRANT_REPO}/config/observability?ref=${KUADRANT_REF}"
87+
KUADARNT_OBSERVABILITY_ISTIO_KUSTOMIZATION="${KUADRANT_REPO}/config/observability/promtheus/monitors/base?ref=${KUADRANT_REF}"
8788
KUADRANT_DASHBOARDS_KUSTOMIZATION="${KUADRANT_REPO}/examples/dashboards?ref=${KUADRANT_REF}"
8889
KUADRANT_ALERTS_KUSTOMIZATION="${KUADRANT_REPO}/examples/alerts?ref=${KUADRANT_REF}"
8990
MGC_REPO="github.com/${KUADRANT_ORG}/multicluster-gateway-controller.git"
@@ -460,8 +461,8 @@ fi
460461

461462
# Install observability stack
462463
info "Installing observability stack in ${KUADRANT_CLUSTER_NAME}..."
463-
kubectl kustomize ${KUADARNT_OBSERVABILITY_KUSTOMIZATION} | $CONTAINER_RUNTIME_BIN run --rm -i docker.io/ryane/kfilt -i kind=CustomResourceDefinition | kubectl apply --server-side -f -
464-
kubectl kustomize ${KUADARNT_OBSERVABILITY_KUSTOMIZATION} | $CONTAINER_RUNTIME_BIN run --rm -i docker.io/ryane/kfilt -x kind=CustomResourceDefinition | kubectl apply -f -
464+
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 -
465+
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 -
465466
kubectl kustomize ${KUADRANT_DASHBOARDS_KUSTOMIZATION} | kubectl apply --server-side -f -
466467
kubectl kustomize ${KUADRANT_ALERTS_KUSTOMIZATION} | kubectl apply --server-side -f -
467468
success "observability stack installed successfully."

0 commit comments

Comments
 (0)