fix(obsidian-livesync): copy configmap via init container to avoid unchownable subPath bind-mount
This commit is contained in:
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user