Browse Source

Helm: Allow adding additional labels to the service monitors (#5593)

pull/5600/head
Gregor Tudan 7 months ago
committed by GitHub
parent
commit
262fe2c723
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      k8s/charts/seaweedfs/templates/filer-servicemonitor.yaml
  2. 3
      k8s/charts/seaweedfs/templates/master-servicemonitor.yaml
  3. 3
      k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml
  4. 3
      k8s/charts/seaweedfs/templates/volume-servicemonitor.yaml
  5. 1
      k8s/charts/seaweedfs/values.yaml

3
k8s/charts/seaweedfs/templates/filer-servicemonitor.yaml

@ -12,6 +12,9 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: filer
{{- with .Values.global.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- interval: 30s

3
k8s/charts/seaweedfs/templates/master-servicemonitor.yaml

@ -12,6 +12,9 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: master
{{- with .Values.global.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- interval: 30s

3
k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml

@ -12,6 +12,9 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: s3
{{- with .Values.global.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- interval: 30s

3
k8s/charts/seaweedfs/templates/volume-servicemonitor.yaml

@ -12,6 +12,9 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: volume
{{- with .Values.global.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- interval: 30s

1
k8s/charts/seaweedfs/values.yaml

@ -25,6 +25,7 @@ global:
enabled: false
gatewayHost: null
gatewayPort: null
additionalLabels: {}
# if enabled will use global.replicationPlacment and override master & filer defaultReplicaPlacement config
enableReplication: false
# replication type is XYZ:

Loading…
Cancel
Save