Verified Commit 2de02a80 authored by Arie Peterson's avatar Arie Peterson
Browse files

Separate flux cluster base for restore purposes

parent c985cd5b
......@@ -3,9 +3,9 @@
set -euo pipefail
flux install \
--network-policy=false \
--watch-all-namespaces=true \
--namespace=flux-system
--network-policy=false \
--watch-all-namespaces=true \
--namespace=flux-system
# get current git branch name
branch=${CI_COMMIT_REF_NAME:-}
......@@ -14,12 +14,22 @@ branch=${CI_COMMIT_REF_NAME:-}
echo "Tracking branch $branch for https://open.greenhost.net/openappstack/openappstack flux repo"
flux create source git openappstack \
--url=https://open.greenhost.net/openappstack/openappstack \
--branch=$branch \
--interval=1m
--url=https://open.greenhost.net/openappstack/openappstack \
--branch="$branch" \
--interval=1m
flux create kustomization openappstack \
--source=GitRepository/openappstack \
--path="./flux2/cluster/base" \
--prune=true \
--interval=1h
flux create kustomization openappstack-infrastructure \
--source=GitRepository/openappstack \
--path="./flux2/cluster/base/infrastructure/" \
--prune=true \
--interval=1h
flux create kustomization openappstack-core \
--source=GitRepository/openappstack \
--path="./flux2/cluster/base/core/" \
--prune=true \
--interval=1h
flux create kustomization openappstack-monitoring \
--source=GitRepository/openappstack \
--path="./flux2/cluster/base/monitoring/" \
--prune=true \
--interval=1h
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment