helm collabora kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

  1. {{- if .Values.prometheus.servicemonitor.enabled }}
  2. apiVersion: monitoring.coreos.com/v1
  3. kind: ServiceMonitor
  4. metadata:
  5. name: {{ include "collabora-online.fullname" . }}
  6. labels:
  7. {{- include "collabora-online.labels" . | nindent 4 }}
  8. {{- with .Values.prometheus.servicemonitor.labels }}
  9. {{- toYaml . | nindent 4 }}
  10. {{- end }}
  11. spec:
  12. endpoints:
  13. - port: http
  14. path: "/cool/getMetrics"
  15. basicAuth:
  16. username:
  17. {{- if (.Values.collabora.existingSecret).enabled }}
  18. name: {{ .Values.collabora.existingSecret.secretName | quote }}
  19. key: {{ .Values.collabora.existingSecret.usernameKey | quote }}
  20. {{- else }}
  21. name: {{ include "collabora-online.fullname" . }}
  22. key: username
  23. {{- end }}
  24. password:
  25. {{- if (.Values.collabora.existingSecret).enabled }}
  26. name: {{ .Values.collabora.existingSecret.secretName | quote }}
  27. key: {{ .Values.collabora.existingSecret.passwordKey | quote }}
  28. {{- else }}
  29. name: {{ include "collabora-online.fullname" . }}
  30. key: password
  31. {{- end }}
  32. selector:
  33. matchLabels:
  34. {{- include "collabora-online.selectorLabels" . | nindent 6 }}
  35. type: main
  36. {{- end }}