diff --git a/apps/obsidian-livesync/couchdb-deployment.yaml b/apps/obsidian-livesync/couchdb-deployment.yaml index 91f494f..7f525b2 100644 --- a/apps/obsidian-livesync/couchdb-deployment.yaml +++ b/apps/obsidian-livesync/couchdb-deployment.yaml @@ -15,6 +15,15 @@ spec: labels: app: couchdb spec: + initContainers: + - name: config-copy + image: busybox + command: ["cp", "/cm/livesync.ini", "/local-d/livesync.ini"] + volumeMounts: + - name: couchdb-config + mountPath: /cm + - name: couchdb-local-d + mountPath: /local-d containers: - name: couchdb image: couchdb:3 @@ -40,9 +49,8 @@ spec: volumeMounts: - name: couchdb-data mountPath: /opt/couchdb/data - - name: couchdb-config - mountPath: /opt/couchdb/etc/local.d/livesync.ini - subPath: livesync.ini + - name: couchdb-local-d + mountPath: /opt/couchdb/etc/local.d livenessProbe: httpGet: path: /_up @@ -69,3 +77,5 @@ spec: - name: couchdb-config configMap: name: couchdb-config + - name: couchdb-local-d + emptyDir: {}