feat(apps): install Dendrite and Element

Thanks to @locmai

Related PR: https://github.com/S7evinK/dendrite-helm/pull/5
This commit is contained in:
Khue Doan 2022-01-09 23:09:13 +07:00
parent 04057ea965
commit e059ffb4fb
4 changed files with 97 additions and 0 deletions

7
apps/dendrite/Chart.yaml Normal file
View File

@ -0,0 +1,7 @@
apiVersion: v2
name: dendrite
version: 0.0.0
dependencies:
- name: dendrite
version: 0.0.1
repository: https://locmai.github.io/charts # TODO switch to official chart

62
apps/dendrite/values.yaml Normal file
View File

@ -0,0 +1,62 @@
dendrite:
polylith: false
image:
name: "locmai/dendrite-monolith:010922" # TODO switch to official image
pullPolicy: IfNotPresent
configuration:
version: 2
servername: &host matrix.khuedoan.com
database:
host: "dendrite-postgresql.apps.svc.cluster.local:5432"
user: "dendrite"
password: "dendrite"
max_open_conns: 100
max_idle_conns: 2
conn_max_lifetime: -1
metrics:
enabled: true
jetstream:
in_memory: false
addresses:
- nats://dendrite-nats:4222
persistence:
storageClass: longhorn
logs:
capacity: 1Gi
media:
capacity: 5Gi
nats:
enabled: true
nats:
jetstream:
enabled: true
postgresql:
enabled: true
global:
postgresql:
postgresqlDatabase: dendrite
postgresqlUsername: dendrite
postgresqlPassword: dendrite
persistence:
enabled: true
storageClass: longhorn
accessModes:
- ReadWriteOnce
size: 5Gi
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
external-dns.alpha.kubernetes.io/target: "homelab-tunnel.khuedoan.com"
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
nginx.ingress.kubernetes.io/proxy-body-size: 32m
hosts:
- host: *host
paths:
- path: /
pathType: Prefix
tls:
- secretName: dendrite-tls-certificate
hosts:
- *host

7
apps/element/Chart.yaml Normal file
View File

@ -0,0 +1,7 @@
apiVersion: v2
name: elementweb
version: 0.0.0
dependencies:
- name: elementweb
version: 0.0.1
repository: https://locmai.github.io/charts # TODO switch to official chart

21
apps/element/values.yaml Normal file
View File

@ -0,0 +1,21 @@
elementweb:
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
external-dns.alpha.kubernetes.io/target: "homelab-tunnel.khuedoan.com"
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
hosts:
- host: &host chat.khuedoan.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: element-tls-certificate
hosts:
- *host
config:
default:
base_url: https://matrix.khuedoan.com
server_name: khuedoan.com