Browse Source

add dendrite deploy files

master
sseneca 2 years ago
parent
commit
e86d138ea2
  1. 16
      dendrite/dendrite-secrets.yaml
  2. 35
      dendrite/deployment.yaml
  3. 20
      dendrite/ingress.yaml
  4. 5
      dendrite/namespace.yaml
  5. 15
      dendrite/postgresql-secrets.yaml
  6. 35
      dendrite/postgresql.yaml
  7. 14
      dendrite/service.yaml
  8. 35
      dendrite/storage-db.yaml

16
dendrite/dendrite-secrets.yaml

File diff suppressed because one or more lines are too long

35
dendrite/deployment.yaml

@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dendrite
namespace: dendrite
labels:
app: dendrite
spec:
replicas: 1
selector:
matchLabels:
app: dendrite
strategy:
type: Recreate
template:
metadata:
labels:
app: dendrite
spec:
containers:
- image: matrixdotorg/dendrite-monolith:v0.3.8
name: monolith
ports:
- containerPort: 8008
name: monolith
volumeMounts:
- mountPath: /etc/dendrite
name: encryption-secrets
readOnly: true
restartPolicy: Always
volumes:
- name: encryption-secrets
secret:
secretName: encryption-secrets
status: {}

20
dendrite/ingress.yaml

@ -0,0 +1,20 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
namespace: dendrite
name: dendrite
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- "matrix.ssene.ca"
secretName: "dendrite-tls-cert"
rules:
- host: "matrix.ssene.ca"
http:
paths:
- path: /
backend:
serviceName: "monolith"
servicePort: 8008

5
dendrite/namespace.yaml

@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: dendrite

15
dendrite/postgresql-secrets.yaml

@ -0,0 +1,15 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: postgresql-credentials
namespace: dendrite
spec:
encryptedData:
values.yaml: AgDAAj9UpFXfH/c7IO1eieh9bx4HfKVKQ23alL191CpXznkk7NVgd9gz7gDVtOfaJq5dsmkTPUjVzgHFkhwpBg9xK9ry2GB/q5KLvl03MI/IEX6WIEIStm09+eUzur7vLifgIk9840DSzdV4iTUubP7sl6giz8TLNEcw75DSiMHkc8ZML/mrLu+TbLVM5x5ptqF5TyyA5MqTFKRqirbmUgcLnt9+5IoKhFSL1zA1bWpYJkaVZXLr1grqr5HMJny4ehZUrlF8vFgJh9VSrZPa/yCTFlixOuuzwM1TSGG4+qX7H4MBVnZuEkhxrJTV/umnzNjyL/JtAj6kqSEMkycSYI/dw/ig4rAKNr4Wqob8vbhayUdeLNFVaexMJVq3K+i5gC28GEJZdm77LJb8UEl7Vho24D8mby9inPtEnsB3EljzWGh/wfpma5NKGUA8cDDMjwJkawXTWtmt4QkLziesFw/SQzcWjhT+4fukaE7WJYG6ax1gAxwgqNvoNiw1K0zQTjIf7d1jhnd3xvsyGahHTm/YSXTrfxN3RSlcn+pF3ziqVjCYu8/tXWkah4nQInWDZDSxdZWZsIAO+eEgP9ZihqtKt7UK6y3ibWiHI/vHuf7sRNZOzQFHeEKiNowv7IpVonQkBtxNiqOCYP7ahxQg7TapdMOSgQcgjwYAEbHFbwYxFdt8aIt8VbxBzttkIQ8sjkYGChoXoavlAgft0dlcxt6gL8ZSNq6jawhwpQfzWKvYRVYMI3Guj5NW9qBQ7V6L+pgaX8+AoOGps6jja/k3Tj97wbwciCP3ScYPdyRM1ptwfPqnBhBvBAKPr5nZjL2juLVdu3P0nQDW
template:
metadata:
creationTimestamp: null
name: postgresql-credentials
namespace: dendrite

35
dendrite/postgresql.yaml

@ -0,0 +1,35 @@
---
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
name: postgresql
namespace: dendrite
annotations:
fluxcd.io/automated: "true"
fluxcd.io/tag.chart-image: semver:~13.1
spec:
test:
enable: true
rollback:
enable: true
retry: true
releaseName: postgresql
chart:
repository: https://charts.bitnami.com/bitnami
name: postgresql
version: 10.2.6
valuesFrom:
- secretKeyRef:
name: postgresql-credentials
values:
image:
repository: bitnami/postgresql
tag: 13.1.0
persistence:
existingClaim: database-dendrite
volumePermissions:
enabled: true
psp:
create: true
rbac:
create: true

14
dendrite/service.yaml

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: monolith
namespace: dendrite
spec:
ports:
- name: monolith
port: 8008
targetPort: 8008
selector:
app: dendrite
status:
loadBalancer: {}

35
dendrite/storage-db.yaml

@ -0,0 +1,35 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: database-dendrite
spec:
storageClassName: local-path
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
local:
path: /var/lib/databases/dendrite
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- sserver
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: database-dendrite
namespace: dendrite
spec:
storageClassName: local-path
volumeName: database-dendrite
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
Loading…
Cancel
Save