specify service monitor

This commit is contained in:
2025-05-15 20:53:23 -05:00
parent 8d770d3520
commit 56155e9db7
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: gitea
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: gitea
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: gitea
app.kubernetes.io/service: gitea-http
app.kubernetes.io/instance: {{ .Release.Name }}
endpoints:
- port: http

View File

@@ -59,7 +59,7 @@ gitea:
metrics:
enabled: true
serviceMonitor:
enabled: true
enabled: false
oauth:
- name: Authentik
provider: openidConnect