--- apiVersion: apps/v1 kind: Deployment metadata: labels: app: dendrite name: dendrite namespace: matrix spec: strategy: type: Recreate replicas: 1 selector: matchLabels: app: dendrite template: metadata: labels: app: dendrite spec: containers: - image: bv11-cr01.bessems.eu/proxy/library/postgres:14-alpine name: db env: - name: POSTGRES_USER value: dendrite - name: POSTGRES_PASSWORD value: dendrite ports: - containerPort: 5432 name: db volumeMounts: - mountPath: /var/lib/postgresql/data name: flexvolsmb-dendrite-db - name: configmap-dendrite mountPath: /docker-entrypoint-initdb.d/20-create_db.sh subPath: 20-create_db.sh - image: bv11-cr01.bessems.eu/proxy/matrixdotorg/dendrite-monolith:latest name: dendrite ports: - containerPort: 8008 name: web volumeMounts: - mountPath: /etc/dendrite name: flexvolsmb-dendrite-config - mountPath: /var/dendrite/media name: flexvolsmb-dendrite-media volumes: - name: flexvolsmb-dendrite-config persistentVolumeClaim: claimName: flexvolsmb-dendrite-config - name: flexvolsmb-dendrite-db persistentVolumeClaim: claimName: flexvolsmb-dendrite-db - name: flexvolsmb-dendrite-media persistentVolumeClaim: claimName: flexvolsmb-dendrite-media - name: configmap-dendrite configMap: name: configmap-dendrite