mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-27 15:53:19 +00:00
Add teardown script
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
ce8815b1d9
commit
f05ca938d5
1 changed files with 26 additions and 0 deletions
26
scripts/fleet-down.sh
Executable file
26
scripts/fleet-down.sh
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# This script tears down the fleet of Kubernetes clusters.
|
||||||
|
|
||||||
|
# Copyright 2024 The Flux authors. All rights reserved.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
CLUSTER_HUB="flux-hub"
|
||||||
|
echo "INFO - Deleting cluster ${CLUSTER_HUB}"
|
||||||
|
|
||||||
|
kind delete cluster --name "${CLUSTER_HUB}"
|
||||||
|
|
||||||
|
CLUSTER_STAGING="flux-staging"
|
||||||
|
echo "INFO - Deleting cluster ${CLUSTER_STAGING}"
|
||||||
|
|
||||||
|
kind delete cluster --name "${CLUSTER_STAGING}"
|
||||||
|
|
||||||
|
CLUSTER_PRODUCTION="flux-production"
|
||||||
|
echo "INFO - Deleting cluster ${CLUSTER_PRODUCTION}"
|
||||||
|
|
||||||
|
kind delete cluster --name "${CLUSTER_PRODUCTION}"
|
||||||
|
|
||||||
|
echo "INFO - Clusters deleted successfully"
|
Loading…
Add table
Add a link
Reference in a new issue