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:
|
labels:
|
||||||
app: couchdb
|
app: couchdb
|
||||||
spec:
|
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:
|
containers:
|
||||||
- name: couchdb
|
- name: couchdb
|
||||||
image: couchdb:3
|
image: couchdb:3
|
||||||
@@ -40,9 +49,8 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: couchdb-data
|
- name: couchdb-data
|
||||||
mountPath: /opt/couchdb/data
|
mountPath: /opt/couchdb/data
|
||||||
- name: couchdb-config
|
- name: couchdb-local-d
|
||||||
mountPath: /opt/couchdb/etc/local.d/livesync.ini
|
mountPath: /opt/couchdb/etc/local.d
|
||||||
subPath: livesync.ini
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /_up
|
path: /_up
|
||||||
@@ -69,3 +77,5 @@ spec:
|
|||||||
- name: couchdb-config
|
- name: couchdb-config
|
||||||
configMap:
|
configMap:
|
||||||
name: couchdb-config
|
name: couchdb-config
|
||||||
|
- name: couchdb-local-d
|
||||||
|
emptyDir: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user