From d65e6c26a943e72a8fdcf974289182f4480a514d Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 3 Mar 2025 17:06:17 -0600 Subject: [PATCH] add element web --- .../applications/element-web/Chart.yaml | 27 ++++++++++++++++++ .../templates/external-secret.yaml | 23 +++++++++++++++ .../applications/element-web/values.yaml | 28 +++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 clusters/cl01tl/applications/element-web/Chart.yaml create mode 100644 clusters/cl01tl/applications/element-web/templates/external-secret.yaml create mode 100644 clusters/cl01tl/applications/element-web/values.yaml diff --git a/clusters/cl01tl/applications/element-web/Chart.yaml b/clusters/cl01tl/applications/element-web/Chart.yaml new file mode 100644 index 000000000..f4b68c2e8 --- /dev/null +++ b/clusters/cl01tl/applications/element-web/Chart.yaml @@ -0,0 +1,27 @@ +apiVersion: v2 +name: element-web +version: 1.0.0 +description: Element Web +keywords: + - element-web + - chat + - matrix +home: https://wiki.alexlebens.dev/doc/element-web-R4dzXXspgr +sources: + - https://github.com/element-hq/element-web + - https://github.com/cloudflare/cloudflared + - https://hub.docker.com/r/vectorim/element-web + - https://gitlab.com/ananace/charts/-/tree/master/charts/element-web + - https://github.com/alexlebens/helm-charts/tree/main/charts/cloudflared +maintainers: + - name: alexlebens +dependencies: + - name: element-web + version: 1.4.3 + repository: https://ananace.gitlab.io/charts + - name: cloudflared + alias: cloudflared + repository: http://alexlebens.github.io/helm-charts + version: 1.14.0 +icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/element.png +appVersion: v1.11.88 diff --git a/clusters/cl01tl/applications/element-web/templates/external-secret.yaml b/clusters/cl01tl/applications/element-web/templates/external-secret.yaml new file mode 100644 index 000000000..3e65c22ac --- /dev/null +++ b/clusters/cl01tl/applications/element-web/templates/external-secret.yaml @@ -0,0 +1,23 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: element-web-cloudflared-secret + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: element-web-cloudflared-secret + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} + app.kubernetes.io/component: web + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + secretStoreRef: + kind: ClusterSecretStore + name: vault + data: + - secretKey: cf-tunnel-token + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /cloudflare/tunnels/element + metadataPolicy: None + property: token diff --git a/clusters/cl01tl/applications/element-web/values.yaml b/clusters/cl01tl/applications/element-web/values.yaml new file mode 100644 index 000000000..0f7e21e1d --- /dev/null +++ b/clusters/cl01tl/applications/element-web/values.yaml @@ -0,0 +1,28 @@ +element-web: + replicaCount: 1 + image: + repository: vectorim/element-web + tag: v1.11.93 + pullPolicy: IfNotPresent + defaultServer: + url: https://matrix.alexlebens.dev + name: alexlebens.dev + identity_url: https://alexlebens.dev + config: + disable_3pid_login: true + brand: "Alex Lebens" + branding: + welcome_background_url: https://web-assets-3bfcb5585cbd63dc365d32a3.nyc3.cdn.digitaloceanspaces.com/alexlebens-net/background-3.jpg + auth_header_logo_url: https://web-assets-3bfcb5585cbd63dc365d32a3.nyc3.cdn.digitaloceanspaces.com/alexlebens-net/icon_white.png + sso_redirect_options: + immediate: true + default_theme: dark + default_country_code: US + ingress: + enabled: false + resources: + requests: + cpu: 10m + memory: 128Mi +cloudflared: + existingSecretName: element-web-cloudflared-secret