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/part-of: {{ .Release.Name }} spec: selector: matchLabels: app.kubernetes.io/name: gitea app.kubernetes.io/instance: {{ .Release.Name }} matchExpressions: - { key: app.kubernetes.io/controller, operator: NotIn, values: [backup] } endpoints: - port: http