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