Slide 38
Slide 38 text
コンテナイメージ間のファイルアクセス (1)
sidecar + bind mount のマニフェストイメージ
38
initContainers:
- # ...
restartPolicy: Always
image: example.com/bindmount
# mount --bind /data /shared-data を実行
args:
- /data:/shared-data
startupProbe:
exec:
command: [mountpoint, /shared-data]
volumeMounts:
- name: shared-data
mountPath: /shared-data
mountPropagation: Bidirectional
# ...
containers:
- # ...
volumeMounts:
- name: shared-data
mountPath: /shared-data
mountPropagation: HostToContainer
# ...
volumes:
- name: shared-data
emptyDir: {}