Add bootstrapper base
This commit is contained in:
17
clusterapi/move-cluster.sh
Executable file
17
clusterapi/move-cluster.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
. variables.sh
|
||||
|
||||
echo "initializing cluster api in management cluster"
|
||||
export KUBECONFIG=output/workload-kubeconfig
|
||||
|
||||
clusterctl init --core cluster-api --bootstrap kubeadm --control-plane kubeadm --infrastructure hetzner
|
||||
|
||||
echo "switching back to helm"
|
||||
export KUBECONFIG=~/.kube/config
|
||||
|
||||
clusterctl move --to-kubeconfig $CAPH_WORKER_CLUSTER_KUBECONFIG
|
||||
|
||||
echo "move done"
|
Reference in New Issue
Block a user