initcontainer now only creates the folder
This commit is contained in:
@@ -264,29 +264,16 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: create-bucket
|
- name: create-bucket
|
||||||
image: minio/mc:latest
|
image: busybox:latest
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
until mc alias set myminio http://localhost:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD; do
|
mkdir -p /data/outline
|
||||||
echo "Waiting for MinIO..."
|
echo "Bucket directory created"
|
||||||
sleep 2
|
volumeMounts:
|
||||||
done
|
- name: data
|
||||||
mc mb --ignore-existing myminio/outline
|
mountPath: /data
|
||||||
mc anonymous set private myminio/outline
|
|
||||||
echo "Bucket created successfully"
|
|
||||||
env:
|
|
||||||
- name: MINIO_ROOT_USER
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: outline-minio
|
|
||||||
key: root-user
|
|
||||||
- name: MINIO_ROOT_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: outline-minio
|
|
||||||
key: root-password
|
|
||||||
containers:
|
containers:
|
||||||
- name: minio
|
- name: minio
|
||||||
image: minio/minio:latest
|
image: minio/minio:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user