add well-known-werts

This commit is contained in:
James Andariese 2023-06-24 09:39:31 -05:00
parent 800d27f044
commit 10d43ce5f0
5 changed files with 90 additions and 0 deletions

13
well-known-werts/cm.yaml Normal file
View File

@ -0,0 +1,13 @@
apiVersion: v1
data:
client: |
{"m.homeserver":{"base_url":"https://chat.werts.us/"}}
server: |
{ "m.server": "chat.werts.us:443" }
kind: ConfigMap
metadata:
creationTimestamp: "2023-06-24T14:16:05Z"
name: well-known-werts-matrix
namespace: well-known-werts
resourceVersion: "91429434"
uid: d07cdcbf-c54a-416a-a183-d6f07324492d

View File

@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: well-known-werts
name: well-known-werts
spec:
replicas: 1
selector:
matchLabels:
app: well-known-werts
strategy:
type: Recreate
template:
metadata:
labels:
app: well-known-werts
spec:
restartPolicy: Always
containers:
- image: httpd:latest
name: well-known-werts
ports:
- containerPort: 80
volumeMounts:
- name: well-known-werts-matrix
mountPath: /usr/local/apache2/htdocs/.well-known/matrix
volumes:
- name: well-known-werts-matrix
configMap:
name: well-known-werts-matrix

View File

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: well-known-werts
namespace: well-known-werts
annotations:
haproxy-ingress.github.io/ssl-redirect: "true"
spec:
ingressClassName: haproxy
rules:
- host: werts.us
http:
paths:
- path: /.well-known
pathType: Prefix
backend:
service:
name: well-known-werts
port:
number: 8000
tls:
- hosts:
- werts.us
secretName: wildcard-tls

6
well-known-werts/ns.yaml Normal file
View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
wildcard-tls.kn8v.com/copy: "true"
name: well-known-werts

17
well-known-werts/svc.yaml Normal file
View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: well-known-werts
name: well-known-werts
namespace: well-known-werts
spec:
selector:
app: well-known-werts
ports:
- name: http
port: 8000
protocol: TCP
targetPort: 80
clusterIP: None
type: ClusterIP