From cc56f13a9bf7d9221800c749531106ca0b9de34e Mon Sep 17 00:00:00 2001 From: Grant <5445379+grantdhunter@users.noreply.github.com> Date: Sat, 1 Feb 2025 23:38:19 -0700 Subject: [PATCH] Add Matrix Registration --- README.md | 5 ++++ matrix-registration/deployment.yaml | 41 ++++++++++++++++++++++++++ matrix-registration/kustomization.yaml | 12 ++++++++ matrix-registration/route.yaml | 16 ++++++++++ matrix-registration/service.yaml | 11 +++++++ 5 files changed, 85 insertions(+) create mode 100644 matrix-registration/deployment.yaml create mode 100644 matrix-registration/kustomization.yaml create mode 100644 matrix-registration/route.yaml create mode 100644 matrix-registration/service.yaml diff --git a/README.md b/README.md index 9ee081e..b56e371 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,11 @@ kubectl create secret generic goatchatca-signingkey --from-literal=signing.key=$ helm upgrade --create-namespace --namespace goatchat goatchat ananace-charts/matrix-synapse --values synapse/values.yaml --install ``` +### Install Matrix Registration +```sh +kubeclt apply -k matrix-registration + +``` ## Ghost Blogs ### kngot #### Create db and user diff --git a/matrix-registration/deployment.yaml b/matrix-registration/deployment.yaml new file mode 100644 index 0000000..4b0910f --- /dev/null +++ b/matrix-registration/deployment.yaml @@ -0,0 +1,41 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: matrix-registration +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + name: matrix-registration + app: matrix-registration + strategy: + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 + type: RollingUpdate + template: + metadata: + labels: + name: matrix-registration + app: matrix-registration + spec: + securityContext: {} + containers: + - image: zeratax/matrix-registration:v0.9.1 + imagePullPolicy: IfNotPresent + name: matrix-registration + args: ["serve"] + ports: + - containerPort: 5000 + name: web + protocol: TCP + volumeMounts: + - mountPath: /data/config + name: matrix-registration + restartPolicy: Always + volumes: + - name: matrix-registration + configMap: + name: matrix-registration diff --git a/matrix-registration/kustomization.yaml b/matrix-registration/kustomization.yaml new file mode 100644 index 0000000..e53b0b2 --- /dev/null +++ b/matrix-registration/kustomization.yaml @@ -0,0 +1,12 @@ +namespace: goatchat +namePrefix: goatchat- + +resources: + - service.yaml + - deployment.yaml + - route.yaml + +configMapGenerator: + - name: matrix-registration + files: + - config.yaml diff --git a/matrix-registration/route.yaml b/matrix-registration/route.yaml new file mode 100644 index 0000000..b49465f --- /dev/null +++ b/matrix-registration/route.yaml @@ -0,0 +1,16 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: matrix-registration +spec: + entryPoints: + - websecure + routes: + - match: Host(`goatchat.ca`) && PathPrefix(`/gate/`) + kind: Rule + services: + - kind: Service + name: goatchat-matrix-registration + port: 5000 + tls: + certResolver: letsencrypt diff --git a/matrix-registration/service.yaml b/matrix-registration/service.yaml new file mode 100644 index 0000000..ede800f --- /dev/null +++ b/matrix-registration/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: matrix-registration +spec: + selector: + app: matrix-registration + ports: + - name: web + protocol: TCP + port: 5000