From 997e02b1c05d49a0dfbccf0d3a6fd0de1afd416e Mon Sep 17 00:00:00 2001 From: alexlebens Date: Mon, 8 Jul 2024 21:58:16 -0500 Subject: [PATCH] add element --- .../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..b33b5a1bb --- /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-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.3.25 + repository: https://ananace.gitlab.io/charts + - name: cloudflared + alias: cloudflared + repository: http://alexlebens.github.io/helm-charts + version: 1.4.0 +icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/element.png +appVersion: v1.11.68 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..9b141db57 --- /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.69 + 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://d21zlbwtcn424f.cloudfront.net/background.jpg + auth_header_logo_url: https://d21zlbwtcn424f.cloudfront.net/icon_white.png + sso_redirect_options: + immediate: true + default_theme: dark + default_country_code: US + ingress: + enabled: false + resources: + requests: + cpu: 100m + memory: 128Mi +cloudflared: + existingSecretName: element-web-cloudflared-secret