fix(obsidian-livesync): copy configmap via init container to avoid unchownable subPath bind-mount

This commit is contained in:
funman300
2026-05-18 12:58:55 -07:00
parent 51ccb1f61e
commit dc6e8384d5
+13 -3
View File
@@ -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: {}