Enable the extension
This commit is contained in:
parent
03897ae904
commit
b8856368e7
16
common/values.service-monitor.yaml
Normal file
16
common/values.service-monitor.yaml
Normal 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 }}
|
@ -43,6 +43,13 @@ templates:
|
|||||||
- chart: bedag/raw
|
- chart: bedag/raw
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
alias: istio
|
alias: istio
|
||||||
|
service-monitor:
|
||||||
|
dependencies:
|
||||||
|
- chart: bedag/raw
|
||||||
|
version: 2.0.0
|
||||||
|
alias: service-monitor
|
||||||
|
values:
|
||||||
|
- '{{ requiredEnv "PWD" }}/common/values.service-monitor.yaml'
|
||||||
namespace:
|
namespace:
|
||||||
dependencies:
|
dependencies:
|
||||||
- chart: bedag/raw
|
- chart: bedag/raw
|
||||||
@ -160,6 +167,7 @@ templates:
|
|||||||
version: 4.6.0
|
version: 4.6.0
|
||||||
inherit:
|
inherit:
|
||||||
- template: default-env-values
|
- template: default-env-values
|
||||||
|
- template: service-monitor
|
||||||
|
|
||||||
gitea: &gitea
|
gitea: &gitea
|
||||||
name: gitea
|
name: gitea
|
||||||
|
Reference in New Issue
Block a user