convert to use app-template

This commit is contained in:
2024-06-01 20:04:50 -05:00
parent b53d99948a
commit 7d805bd29b
3 changed files with 221 additions and 59 deletions

View File

@@ -1,26 +1,41 @@
apiVersion: v2 apiVersion: v2
name: matrix-synapse name: matrix-synapse
version: 1.0.0 version: 1.0.0
description: Matrix Synapse
keywords:
- chat
- bridge
- matrix
- matrix-hookshot
- mautrix-discord
- mautrix-whatsapp
sources: sources:
- https://github.com/element-hq/synapse - https://github.com/element-hq/synapse
- https://github.com/matrix-org/matrix-hookshot - https://github.com/matrix-org/matrix-hookshot
- https://github.com/mautrix/discord - https://github.com/mautrix/discord
- https://github.com/mautrix/whatsapp - https://github.com/mautrix/whatsapp
- https://github.com/cloudflare/cloudflared
- https://gitlab.com/ananace/charts/-/tree/master/charts/matrix-synapse - https://gitlab.com/ananace/charts/-/tree/master/charts/matrix-synapse
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster - https://github.com/alexlebens/helm-charts/charts/postgres-cluster
- https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
maintainers:
- name: alexlebens
dependencies: dependencies:
- name: matrix-synapse - name: matrix-synapse
version: 3.9.5 version: 3.9.5
repository: https://ananace.gitlab.io/charts repository: https://ananace.gitlab.io/charts
- name: matrix-hookshot - name: app-template
version: 0.1.1 alias: matrix-hookshot
repository: http://alexlebens.github.io/helm-charts repository: https://bjw-s.github.io/helm-charts/
- name: mautrix-discord version: 3.2.1
version: 0.1.1 - name: app-template
repository: http://alexlebens.github.io/helm-charts alias: mautrix-discord
- name: mautrix-whatsapp repository: https://bjw-s.github.io/helm-charts/
version: 0.1.1 version: 3.2.1
repository: http://alexlebens.github.io/helm-charts - name: app-template
alias: mautrix-whatsapp
repository: https://bjw-s.github.io/helm-charts/
version: 3.2.1
- name: redis - name: redis
version: 19.5.0 version: 19.5.0
repository: https://charts.bitnami.com/bitnami repository: https://charts.bitnami.com/bitnami

View File

@@ -19,3 +19,26 @@ spec:
matchLabels: matchLabels:
app.kubernetes.io/name: matrix-synapse app.kubernetes.io/name: matrix-synapse
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: matrix-hookshot
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: matrix-hookshot
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:
endpoints:
- port: metrics
interval: 15s
scrapeTimeout: 5s
path: /metrics
selector:
matchLabels:
app.kubernetes.io/name: matrix-hookshot
app.kubernetes.io/instance: {{ .Release.Name }}

View File

@@ -109,52 +109,176 @@ matrix-synapse:
ingress: ingress:
enabled: false enabled: false
matrix-hookshot: matrix-hookshot:
deployment: controllers:
main:
type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
containers:
main:
image:
repository: halfshot/matrix-hookshot
tag: 5.3.0
pullPolicy: IfNotPresent
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 256Mi
ingress: serviceAccount:
create: true
service:
main:
controller: main
ports:
webhook: webhook:
enabled: false port: 9000
appservice: targetPort: 9000
enabled: false protocol: HTTP
metrics: metrics:
port: 9001
targetPort: 9001
protocol: HTTP
appservice:
port: 9002
targetPort: 9002
protocol: HTTP
widgets:
port: 9003
targetPort: 9003
protocol: HTTP
persistence:
config:
enabled: true enabled: true
serviceMonitor: type: secret
name: matrix-hookshot-config-secret
advancedMounts:
main:
main:
- path: /data/config.yml
readOnly: true
mountPropagation: None
subPath: config.yml
registration:
enabled: true enabled: true
hookshot: type: secret
existingSecret: matrix-hookshot-config-secret name: matrix-hookshot-config-secret
existingRegistrationSecret: matrix-hookshot-config-secret advancedMounts:
existingPasskeySecret: matrix-hookshot-config-secret main:
main:
- path: /data/registration.yml
readOnly: true
mountPropagation: None
subPath: registration.yml
passkey:
enabled: true
type: secret
name: matrix-hookshot-config-secret
advancedMounts:
main:
main:
- path: /data/passkey.pem
readOnly: true
mountPropagation: None
subPath: passkey.pem
mautrix-discord: mautrix-discord:
deployment: controllers:
main:
type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
containers:
main:
image:
repository: dock.mau.dev/mautrix/discord
tag: v0.6.5
pullPolicy: IfNotPresent
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 256Mi
ingress: serviceAccount:
enabled: false create: true
service:
main:
controller: main
ports:
http:
port: 29334
targetPort: 29334
protocol: HTTP
persistence: persistence:
enabled: ture data:
storageClass: ceph-block storageClass: ceph-block
accessMode: ReadWriteOnce
size: 500Mi size: 500Mi
mautrixDiscord: retain: true
existingSecret: mautrix-discord-config-secret advancedMounts:
main:
main:
- path: /data
readOnly: false
config:
enabled: true
type: secret
name: mautrix-discord-config-secret
advancedMounts:
main:
main:
- path: /data/config.yml
readOnly: true
mountPropagation: None
subPath: config.yml
mautrix-whatsapp: mautrix-whatsapp:
deployment: controllers:
main:
type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
containers:
main:
image:
repository: dock.mau.dev/mautrix/whatsapp
tag: v0.10.7
pullPolicy: IfNotPresent
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 256Mi
ingress: serviceAccount:
enabled: false create: true
service:
main:
controller: main
ports:
http:
port: 29334
targetPort: 29334
protocol: HTTP
persistence: persistence:
enabled: ture data:
storageClass: ceph-block storageClass: ceph-block
accessMode: ReadWriteOnce
size: 500Mi size: 500Mi
mautrixWhatsapp: retain: true
existingSecret: mautrix-whatsapp-config-secret advancedMounts:
main:
main:
- path: /data
readOnly: false
config:
enabled: true
type: secret
name: mautrix-whatsapp-config-secret
advancedMounts:
main:
main:
- path: /data/config.yml
readOnly: true
mountPropagation: None
subPath: config.yml
redis: redis:
architecture: standalone architecture: standalone
auth: auth:
@@ -167,6 +291,12 @@ redis:
replica: replica:
persistence: persistence:
enabled: false enabled: false
cloudflared-synapse:
name: cloudflared-synapse
existingSecretName: matrix-synapse-cloudflared-synapse-secret
cloudflared-hookshot:
name: cloudflared-hookshot
existingSecretName: matrix-synapse-cloudflared-hookshot-secret
postgres-16-cluster: postgres-16-cluster:
mode: standalone mode: standalone
cluster: cluster:
@@ -185,9 +315,3 @@ postgres-16-cluster:
endpointCredentials: matrix-synapse-postgresql-16-cluster-backup-secret endpointCredentials: matrix-synapse-postgresql-16-cluster-backup-secret
backupIndex: 1 backupIndex: 1
retentionPolicy: 14d retentionPolicy: 14d
cloudflared-synapse:
name: cloudflared-synapse
existingSecretName: matrix-synapse-cloudflared-synapse-secret
cloudflared-hookshot:
name: cloudflared-hookshot
existingSecretName: matrix-synapse-cloudflared-hookshot-secret