deployment.yaml (2524B)
1 apiVersion: v1 2 kind: PersistentVolumeClaim 3 metadata: 4 name: continuwuity 5 spec: 6 resources: 7 requests: 8 storage: 5Gi 9 storageClassName: ceph-filesystem 10 volumeMode: Filesystem 11 accessModes: 12 - ReadWriteOnce 13 --- 14 apiVersion: apps/v1 15 kind: Deployment 16 metadata: 17 name: continuwuity 18 spec: 19 replicas: 1 20 selector: 21 matchLabels: 22 app: continuwuity 23 strategy: 24 type: Recreate 25 template: 26 metadata: 27 labels: 28 app: continuwuity 29 spec: 30 enableServiceLinks: false 31 containers: 32 - name: continuwuity 33 resources: 34 limits: {} 35 requests: 36 memory: "100Mi" 37 cpu: "28m" 38 image: forgejo.ellis.link/continuwuation/continuwuity:main 39 imagePullPolicy: Always 40 ports: 41 - containerPort: 8448 42 # Mount the continuwuity config which is stored in the continuwuity-config secret at the config path and should go to /config.yaml 43 volumeMounts: 44 - name: continuwuity-config 45 mountPath: /etc/conduwuit 46 readOnly: true 47 - name: continuwuity-data 48 mountPath: /var/lib/continuwuity 49 env: 50 - name: CONTINUWUITY_CONFIG 51 value: /etc/conduwuit/conduwuit.toml 52 livenessProbe: 53 httpGet: 54 path: /_matrix/client/versions 55 port: 8448 56 initialDelaySeconds: 10 57 timeoutSeconds: 5 58 readinessProbe: 59 httpGet: 60 path: /_matrix/client/versions 61 port: 8448 62 initialDelaySeconds: 10 63 timeoutSeconds: 5 64 # Mount the continuwuity config which is stored in the continuwuity-config secret at the config path and should go to /config.yaml 65 volumes: 66 - name: continuwuity-config 67 secret: 68 secretName: continuwuity-config 69 - name: continuwuity-data 70 persistentVolumeClaim: 71 claimName: continuwuity 72 --- 73 apiVersion: v1 74 kind: Service 75 metadata: 76 name: continuwuity 77 spec: 78 selector: 79 app: continuwuity 80 ports: 81 - name: http 82 protocol: TCP 83 port: 8448 84 targetPort: 8448 85 --- 86 apiVersion: gateway.networking.k8s.io/v1 87 kind: HTTPRoute 88 metadata: 89 name: continuwuity 90 namespace: matrix 91 spec: 92 parentRefs: 93 - name: envoy-gateway 94 namespace: envoy-gateway 95 hostnames: 96 - matrix.mtrnord.blog 97 rules: 98 - backendRefs: 99 - name: continuwuity 100 port: 8448 101 timeouts: 102 request: 240s 103 backendRequest: 0s