Commit 7c9326d
committed
MINOR: kubernetes-ingress: wire kube-prometheus-stack into CI for KEDA Prometheus trigger
The deployment-keda-values.yaml ci test configures a KEDA ScaledObject
with a Prometheus trigger, but the CI environment did not provide a
Prometheus instance, so the scaler could never resolve metrics and the
ServiceMonitor/PodMonitor wiring was untested.
Install kube-prometheus-stack via Helm in install_charts.sh (Grafana,
Alertmanager, node-exporter and kube-state-metrics disabled to keep the
Kind cluster light) and switch the KEDA install from a raw manifest
apply to the kedacore/keda Helm chart for consistency. Update the
keda ci values to enable PodMonitor and point the Prometheus trigger at
the Service name produced by kube-prometheus-stack
(prometheus-kube-prometheus-stack-prometheus.default.svc).
ServiceMonitor/PodMonitor selectors are relaxed via
{serviceMonitor,podMonitor}SelectorNilUsesHelmValues=false so the
operator picks up monitors from any namespace, which is what the chart
templates emit by default.
Signed-off-by: Dinko Korunic <dkorunic@haproxy.com>1 parent 4bf85c5 commit 7c9326d
2 files changed
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
63 | 78 | | |
64 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
65 | 86 | | |
66 | 87 | | |
67 | 88 | | |
| |||
111 | 132 | | |
112 | 133 | | |
113 | 134 | | |
| 135 | + | |
114 | 136 | | |
115 | 137 | | |
116 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
0 commit comments