Add Matrix Registration
This commit is contained in:
parent
9280fd08f9
commit
cc56f13a9b
@ -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
|
||||
|
41
matrix-registration/deployment.yaml
Normal file
41
matrix-registration/deployment.yaml
Normal file
@ -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
|
12
matrix-registration/kustomization.yaml
Normal file
12
matrix-registration/kustomization.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
namespace: goatchat
|
||||
namePrefix: goatchat-
|
||||
|
||||
resources:
|
||||
- service.yaml
|
||||
- deployment.yaml
|
||||
- route.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: matrix-registration
|
||||
files:
|
||||
- config.yaml
|
16
matrix-registration/route.yaml
Normal file
16
matrix-registration/route.yaml
Normal file
@ -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
|
11
matrix-registration/service.yaml
Normal file
11
matrix-registration/service.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: matrix-registration
|
||||
spec:
|
||||
selector:
|
||||
app: matrix-registration
|
||||
ports:
|
||||
- name: web
|
||||
protocol: TCP
|
||||
port: 5000
|
Loading…
x
Reference in New Issue
Block a user