Копирование из s3 в шаред вольюм
#
initContainers:
- name: copy-minio
image: minio/mc
env:
- name: MC_HOST_s3
value: https://<Access Key>:<Secret Key>@<YOUR-S3-ENDPOINT>
args:
- cp
- -r
- s3/rootfs
- /rootfs
securityContext:
allowPrivilegeEscalation: false
volumeMounts:
- name: rootfs
mountPath: /rootfs
Выставление права на вольюм в контейнере без рута
#
initContainers:
- name: volume-permissions
image: busybox
command: ['sh', '-c', 'chmod -R g+rwX /rootfs']
volumeMounts:
- mountPath: /rootfs
name: rootfs