mirror of
https://gitlab.fabcity.hamburg/software/fab-city-software-kit.git
synced 2024-09-19 20:08:52 +02:00
added matrix synapse deployment
This commit is contained in:
parent
cca2d0b2de
commit
c5eda3d891
|
@ -17,14 +17,14 @@ ingress:
|
||||||
kubernetes.io/tls-acme: "true"
|
kubernetes.io/tls-acme: "true"
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-http
|
cert-manager.io/cluster-issuer: letsencrypt-http
|
||||||
hosts:
|
hosts:
|
||||||
- host: code.example.org
|
- host: code.k8s.dev.fabcity-hamburg.de
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
tls:
|
tls:
|
||||||
- secretName: interfacer-gitea-tls
|
- secretName: interfacer-gitea-tls
|
||||||
hosts:
|
hosts:
|
||||||
- code.example.org
|
- code.k8s.dev.fabcity-hamburg.de
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
gateway:
|
gateway:
|
||||||
url: "https://gateway.example.org/"
|
url: "https://gateway.k8s.dev.fabcity-hamburg.de/"
|
||||||
|
|
|
@ -3,3 +3,4 @@ resources:
|
||||||
- interfacer-webpresence
|
- interfacer-webpresence
|
||||||
- interfacer-core
|
- interfacer-core
|
||||||
- gitea
|
- gitea
|
||||||
|
- synapse
|
||||||
|
|
11
apps/synapse/kustomization.yaml
Normal file
11
apps/synapse/kustomization.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
namespace: synapse
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
helmCharts:
|
||||||
|
- name: matrix-synapse
|
||||||
|
version: 3.0.0
|
||||||
|
releaseName: interfacer-synapse
|
||||||
|
namespace: synapse
|
||||||
|
repo: https://ananace.gitlab.io/charts
|
||||||
|
valuesFile: values.yaml
|
5
apps/synapse/namespace.yaml
Normal file
5
apps/synapse/namespace.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: synapse
|
4
apps/synapse/secret.yaml
Normal file
4
apps/synapse/secret.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: synapse-tls
|
31
apps/synapse/values.yaml
Normal file
31
apps/synapse/values.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
serverName: 'k8s.dev.fabcity-hamburg.de'
|
||||||
|
|
||||||
|
config:
|
||||||
|
publicBaseurl: 'https://matrix.k8s.dev.fabcity-hamburg.de'
|
||||||
|
reportStats: true
|
||||||
|
enableRegistration: true
|
||||||
|
trustedKeyServers:
|
||||||
|
- server_name: matrix.org
|
||||||
|
|
||||||
|
extraConfig:
|
||||||
|
enable_search: true
|
||||||
|
enable_registration_without_verification: true
|
||||||
|
allow_public_rooms_over_federation: true
|
||||||
|
dynamic_thumbnails: true
|
||||||
|
|
||||||
|
wellknown:
|
||||||
|
enabled: true
|
||||||
|
replicaCount: 1
|
||||||
|
server:
|
||||||
|
m.server: matrix.k8s.dev.fabcity-hamburg.de:443
|
||||||
|
client:
|
||||||
|
m.homeserver:
|
||||||
|
base_url: https://matrix.k8s.dev.fabcity-hamburg.de
|
||||||
|
extraData:
|
||||||
|
support:
|
||||||
|
admins:
|
||||||
|
- matrix_id: '@hostmaster:fabcity-hamburg.de'
|
||||||
|
email_address: 'hostmaster@fabcity-hamburg.de'
|
||||||
|
role: 'admin'
|
||||||
|
support_page: 'https://www.fabcity.hamburg/impressum/'
|
|
@ -5,7 +5,7 @@ metadata:
|
||||||
name: letsencrypt-http
|
name: letsencrypt-http
|
||||||
spec:
|
spec:
|
||||||
acme:
|
acme:
|
||||||
email: hostmaster@example.org
|
email: hostmaster@fabcity-hamburg.de
|
||||||
server: https://acme-v02.api.letsencrypt.org/directory
|
server: https://acme-v02.api.letsencrypt.org/directory
|
||||||
privateKeySecretRef:
|
privateKeySecretRef:
|
||||||
name: letsencrypt-key
|
name: letsencrypt-key
|
||||||
|
@ -20,7 +20,7 @@ metadata:
|
||||||
name: letsencrypt-http-staging
|
name: letsencrypt-http-staging
|
||||||
spec:
|
spec:
|
||||||
acme:
|
acme:
|
||||||
email: hostmaster@example.org
|
email: hostmaster@fabcity-hamburg.de
|
||||||
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||||
privateKeySecretRef:
|
privateKeySecretRef:
|
||||||
name: letsencrypt-key-staging
|
name: letsencrypt-key-staging
|
||||||
|
|
|
@ -8,7 +8,7 @@ metadata:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-http
|
cert-manager.io/cluster-issuer: letsencrypt-http
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: hub.example.org
|
- host: hub.k8s.dev.fabcity-hamburg.de
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
@ -20,7 +20,7 @@ spec:
|
||||||
name: http
|
name: http
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- hub.example.org
|
- hub.k8s.dev.fabcity-hamburg.de
|
||||||
secretName: interfacer-core-frontend-tls
|
secretName: interfacer-core-frontend-tls
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
|
@ -32,7 +32,7 @@ metadata:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-http
|
cert-manager.io/cluster-issuer: letsencrypt-http
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: gateway.example.org
|
- host: gateway.k8s.dev.fabcity-hamburg.de
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
@ -44,5 +44,5 @@ spec:
|
||||||
name: http
|
name: http
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- gateway.example.org
|
- gateway.k8s.dev.fabcity-hamburg.de
|
||||||
secretName: interfacer-core-gateway-tls
|
secretName: interfacer-core-gateway-tls
|
||||||
|
|
|
@ -8,7 +8,7 @@ metadata:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-http
|
cert-manager.io/cluster-issuer: letsencrypt-http
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: www.example.org
|
- host: www.k8s.dev.fabcity-hamburg.de
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
@ -20,5 +20,5 @@ spec:
|
||||||
name: http
|
name: http
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- www.example.org
|
- www.k8s.dev.fabcity-hamburg.de
|
||||||
secretName: interfacer-webpresence-tls
|
secretName: interfacer-webpresence-tls
|
||||||
|
|
|
@ -4,3 +4,4 @@ resources:
|
||||||
- ../../apps
|
- ../../apps
|
||||||
- interfacer-webpresence
|
- interfacer-webpresence
|
||||||
- interfacer-core
|
- interfacer-core
|
||||||
|
- synapse
|
||||||
|
|
24
overlays/prod/synapse/ingress.yaml
Normal file
24
overlays/prod/synapse/ingress.yaml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: synapse
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: nginx
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-http
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: matrix.k8s.dev.fabcity-hamburg.de
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: interfacer-synapse-matrix-synapse
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- matrix.k8s.dev.fabcity-hamburg.de
|
||||||
|
secretName: synapse-tls
|
4
overlays/prod/synapse/kustomization.yaml
Normal file
4
overlays/prod/synapse/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
namespace: synapse
|
||||||
|
resources:
|
||||||
|
- ingress.yaml
|
Loading…
Reference in a new issue