apiVersion: v1 kind: PersistentVolumeClaim metadata: name: rocksdb-pvc spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi --- apiVersion: apps/v1 kind: Deployment metadata: name: conduit labels: app: conduit spec: replicas: 1 selector: matchLabels: app: conduit template: metadata: labels: app: conduit spec: containers: - name: conduit image: matrixconduit/matrix-conduit:latest ports: - containerPort: 6167 name: http env: - name: CONDUIT_CONFIG value: '/etc/conduit.toml' volumeMounts: - mountPath: '/var/lib/matrix-conduit' name: rocksdb-volume - name: config mountPath: /etc/conduit.toml subPath: conduit.toml volumes: - name: rocksdb-volume persistentVolumeClaim: claimName: rocksdb-pvc - name: config configMap: name: conduit-config --- apiVersion: v1 kind: Service metadata: name: conduit-service spec: selector: app: conduit ports: - name: http port: 80 targetPort: 6167 --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: conduit-tls annotations: cert-manager.io/cluster-issuer: letsencrypt-issuer kubernetes.io/ingress.class: traefik spec: tls: - hosts: - matrix.clarkeis.com secretName: matrix-clarkeis-tls rules: - host: matrix.clarkeis.com http: paths: - path: / pathType: Prefix backend: service: name: conduit-service port: number: 80