From 75f5fd3b8f850c915f313ba3c9afc9a159c5f48a Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Mon, 5 Jan 2026 15:11:59 +0100 Subject: [PATCH] initcontainer now only creates the folder --- outline-system/outline.yaml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/outline-system/outline.yaml b/outline-system/outline.yaml index 4a77c30..9983977 100644 --- a/outline-system/outline.yaml +++ b/outline-system/outline.yaml @@ -264,29 +264,16 @@ spec: spec: initContainers: - name: create-bucket - image: minio/mc:latest + image: busybox:latest command: - sh - -c - | - until mc alias set myminio http://localhost:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD; do - echo "Waiting for MinIO..." - sleep 2 - done - mc mb --ignore-existing myminio/outline - 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 + mkdir -p /data/outline + echo "Bucket directory created" + volumeMounts: + - name: data + mountPath: /data containers: - name: minio image: minio/minio:latest