Enable the extension

This commit is contained in:
Nikolai Rodionov 2023-03-13 14:08:01 +01:00
parent 03897ae904
commit b8856368e7
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,16 @@
---
service-monitor:
templates:
- |
{{ range .Values.service-monitor.resources }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ .name }}
spec:
selector:
matchLabels:
exporter: {{ .label.exporter }}
endpoints:
- port: {{ .endpoints.port }}
{{ end }}

View File

@ -43,6 +43,13 @@ templates:
- chart: bedag/raw
version: 2.0.0
alias: istio
service-monitor:
dependencies:
- chart: bedag/raw
version: 2.0.0
alias: service-monitor
values:
- '{{ requiredEnv "PWD" }}/common/values.service-monitor.yaml'
namespace:
dependencies:
- chart: bedag/raw
@ -160,6 +167,7 @@ templates:
version: 4.6.0
inherit:
- template: default-env-values
- template: service-monitor
gitea: &gitea
name: gitea