2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-05-16 18:53:03 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: matrix
|
|
|
|
namespace: chat
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2021-10-16 08:46:06 +00:00
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
2021-10-16 13:39:52 +00:00
|
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
2020-05-16 18:53:03 +00:00
|
|
|
spec:
|
2021-10-16 08:46:06 +00:00
|
|
|
ingressClassName: nginx
|
2020-05-16 18:53:03 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- matrix.cluster.fun
|
|
|
|
secretName: matrix-ingress
|
|
|
|
rules:
|
|
|
|
- host: matrix.cluster.fun
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /.well-known/matrix
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-05-16 18:53:03 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: well-known
|
|
|
|
port:
|
|
|
|
number: 80
|
2020-05-16 18:53:03 +00:00
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-05-16 18:53:03 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: chat-matrix-synapse
|
|
|
|
port:
|
|
|
|
number: 80
|
2020-05-16 18:53:03 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-05-16 18:53:03 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: riot
|
|
|
|
namespace: chat
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2021-10-16 08:46:06 +00:00
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
2021-10-16 13:39:52 +00:00
|
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
2020-05-16 18:53:03 +00:00
|
|
|
spec:
|
2021-10-16 08:46:06 +00:00
|
|
|
ingressClassName: nginx
|
2020-05-16 18:53:03 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- chat.cluster.fun
|
|
|
|
secretName: riot-ingress
|
|
|
|
rules:
|
|
|
|
- host: chat.cluster.fun
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-05-16 18:53:03 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: chat-matrix-riot
|
|
|
|
port:
|
|
|
|
number: 80
|
2020-05-16 18:53:03 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: well-known
|
|
|
|
namespace: chat
|
2021-05-01 16:31:53 +00:00
|
|
|
annotations:
|
2021-06-18 18:17:27 +00:00
|
|
|
configmap.reloader.stakater.com/reload: "well-known"
|
2020-05-16 18:53:03 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: well-known
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: well-known
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: web
|
|
|
|
image: nginx
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: web
|
|
|
|
volumeMounts:
|
|
|
|
- name: well-known
|
|
|
|
mountPath: /usr/share/nginx/html/.well-known/matrix
|
2021-05-21 10:56:07 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2021-12-19 16:50:48 +00:00
|
|
|
memory: 10Mi
|
2021-05-21 10:56:07 +00:00
|
|
|
requests:
|
2021-12-19 16:50:48 +00:00
|
|
|
memory: 10Mi
|
2020-05-16 18:53:03 +00:00
|
|
|
volumes:
|
|
|
|
- name: well-known
|
|
|
|
configMap:
|
|
|
|
name: well-known
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: well-known
|
|
|
|
namespace: chat
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: 80
|
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: well-known
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: well-known
|
|
|
|
namespace: chat
|
|
|
|
data:
|
|
|
|
server: |-
|
|
|
|
{
|
|
|
|
"m.server": "matrix.cluster.fun:443"
|
|
|
|
}
|