prole/tmp/create_synology_dirs.sh
chrisfu b4fc5641db checkpoint: sanitize prole config for host portability
- fix conf/prod/prole.cfg by replacing hardcoded /Users/chrisfu paths with /Users/chrisfu

- remove injected [update.sh] log lines and stray password artifacts so config is executable

- include latest pending updates across deployment config, UI/core flow, vault/network artifacts, and helper scripts
2026-04-10 05:58:40 -07:00

29 lines
1.0 KiB
Bash

#!/usr/bin/env bash
set -euo pipefail
export KUBECONFIG=/Users/chrisfu/dev/prole/prole-k3s.kubeconfig
echo "==> Creating /synology/d005/gitlab/{minio,gitaly} on gandalf.prole.org..."
kubectl -n gitlab run synology-mkdir \
--image=alpine:latest \
--restart=Never \
--rm --attach \
--overrides='{
"spec":{
"nodeName":"gandalf.prole.org",
"tolerations":[{"operator":"Exists"}],
"volumes":[{"name":"synology","hostPath":{"path":"/synology/d005","type":"Directory"}}],
"containers":[{
"name":"synology-mkdir",
"image":"alpine:latest",
"command":["sh","-c",
"mkdir -p /synology/gitlab/minio /synology/gitlab/gitaly && chmod 777 /synology/gitlab/minio /synology/gitlab/gitaly && ls -la /synology/gitlab/"],
"volumeMounts":[{"name":"synology","mountPath":"/synology"}]
}]
}}' 2>&1
echo "==> Directories created. Waiting 30s for kubelet to retry mount..."
sleep 30
echo "==> Minio pod status:"
kubectl -n gitlab get pod gitlab-minio-5459cf9679-7nv6c