deploy folder restructured, preparing for flux, removed ghost pvc nextcloud-data, simplification of pvc names

This commit is contained in:
Márcio Fernandes
2026-07-14 10:19:05 +00:00
parent 6438530fba
commit 3e8e2a4987
41 changed files with 316 additions and 426 deletions
+4 -28
View File
@@ -1,42 +1,18 @@
#!/bin/bash
set -e
echo "Executing nextcloud app deploy."
kubectl kustomize deploy/app | kubectl apply -f -
load_env_file() {
local file="$1"
if [ -f "$file" ]; then
echo "Loading environment variables from: $file"
set -a
. "$file"
set +a
else
echo "Skipping missing env file: $file"
fi
}
helm repo add nextcloud https://nextcloud.github.io/helm/ --force-update
load_env_file "deploy/app/.env.d/nextcloud-mariadb.env"
load_env_file "deploy/app/.env.d/nextcloud-secrets.env"
load_env_file "deploy/app/.env.d/redis.env"
helm upgrade --install nextcloud nextcloud/nextcloud --version "9.0" \
--values ./deploy/app/nextcloud-helm-values.yaml \
--set externalDatabase.user=${MARIADB_USER:?Missing MARIADB_USER} \
--set externalDatabase.password=${MARIADB_PASSWORD:?Missing MARIADB_PASSWORD} \
--set externalDatabase.database=${MARIADB_DATABASE:?Missing MARIADB_DATABASE} \
--set nextcloud.host=${NEXTCLOUD_HOST:?Missing NEXTCLOUD_HOST} \
--set nextcloud.username=${NEXTCLOUD_USERNAME:?Missing NEXTCLOUD_USERNAME} \
--set nextcloud.password=${NEXTCLOUD_PASSWORD:?Missing NEXTCLOUD_PASSWORD} \
--values ./deploy/apps/nextcloud/nextcloud-helm-values.yaml \
--values ./deploy/apps/nextcloud/nextcloud-helm-values.private.yaml \
--namespace cloud-limbosolutions-com
helm repo add bitnami https://charts.bitnami.com/bitnami --force-update
helm upgrade --install nextcloud-redis bitnami/redis --version "25.3" \
--values ./deploy/app/redis-helm-values.yaml \
--set auth.password="${REDIS_PASSWORD:?Missing REDIS_PASSWORD}" \
--values ./deploy/apps/nextcloud/redis-helm-values.yaml \
--values ./deploy/apps/nextcloud/redis-helm-values.private.yaml \
--namespace cloud-limbosolutions-com
-5
View File
@@ -1,5 +0,0 @@
#!/bin/bash
set -e
echo "Executing infra deploy."
kubectl create namespace cloud-limbosolutions-com || true
kubectl kustomize deploy/infra | kubectl -n cloud-limbosolutions-com apply -f -