7fff7cd2ac
### Pull Request Checklist <!-- Please read https://matrix-org.github.io/dendrite/development/contributing before submitting your pull request --> * [x] I have added Go unit tests or [Complement integration tests](https://github.com/matrix-org/complement) for this PR _or_ I have justified why this PR doesn't need tests * [x] Pull request includes a [sign off below using a legally identifiable name](https://matrix-org.github.io/dendrite/development/contributing#sign-off) _or_ I have already signed off privately --- I do not know, how you run helm-docs .... otherwise i would like to add somewhere: ````markdown * Works well with [Prometheus Operator](https://prometheus-operator.dev/) ([Helmchart](https://artifacthub.io/packages/helm/prometheus-community/kube-prometheus-stack)) and there setup of [Grafana](https://grafana.com/grafana/), by enabling following values: ```yaml prometheus: servicemonitor: enabled: true labels: release: "kube-prometheus-stack" rules: enabled: true # will deploy alert rules additionalLabels: release: "kube-prometheus-stack" grafana: dashboards: enabled: true # will deploy default dashboards ``` PS: The labels `release=kube-prometheus-stack` is setup with the helmchart of the Prometheus Operator. For Grafana Dashboards it maybe need scan enable to scan in correct namespaces (or ALL), enabled by `sidecar.dashboards.searchNamespace` in [Helmchart of grafana](https://artifacthub.io/packages/helm/grafana/grafana) (which is part of PrometheusOperator, so `grafana.sidecar.dashboards.searchNamespace`) ```` Maybe also put somewhere the Screenshot of that Grafana Dashboard: https://grafana.com/grafana/dashboards/13916-dendrite/ --- @S7evinK do you take a look? Signed-off-by: genofire <geno+dev@fireorbit.de>
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
{{- if (gt (len (.Files.Glob "appservices/*")) 0) }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "dendrite.fullname" . }}-appservices-conf
|
|
type: Opaque
|
|
data:
|
|
{{ (.Files.Glob "appservices/*").AsSecrets | indent 2 }}
|
|
{{- end }}
|
|
|
|
{{- if and .Values.signing_key.create (not .Values.signing_key.existingSecret) }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
name: {{ include "dendrite.fullname" . }}-signing-key
|
|
type: Opaque
|
|
{{- end }}
|
|
|
|
{{- with .Values.dendrite_config.global.metrics }}
|
|
{{- if .enabled }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "dendrite.fullname" $ }}-metrics-basic-auth
|
|
type: Opaque
|
|
stringData:
|
|
user: {{ .basic_auth.user | quote }}
|
|
password: {{ .basic_auth.password | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "dendrite.fullname" . }}-conf
|
|
type: Opaque
|
|
stringData:
|
|
dendrite.yaml: |
|
|
{{ toYaml ( mustMergeOverwrite .Values.dendrite_config ( fromYaml (include "override.config" .) ) .Values.dendrite_config ) | nindent 4 }} |