mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Pivot to new cluster
This commit is contained in:
parent
46fb7b03f3
commit
2eedf4932e
@ -35,4 +35,18 @@ export KUBERNETES_VERSION=v1.20.1
|
||||
export CONTROL_PLANE_PORT=6443
|
||||
export CONTROL_PLANE_ENDPOINT=192.168.1.24
|
||||
clusterctl config cluster management-plane -i sidero > management-plane.yaml
|
||||
kubectl delete -f management-plane.yaml
|
||||
|
||||
kubectl apply -f management-plane.yaml
|
||||
|
||||
kubectl get talosconfig \
|
||||
-l cluster.x-k8s.io/cluster-name=management-plane \
|
||||
-o yaml -o jsonpath='{.items[0].status.talosConfig}' > management-plane-talosconfig.yaml
|
||||
|
||||
clusterctl init \
|
||||
--kubeconfig-context=admin@management-plane
|
||||
-i sidero -b talos -c talos
|
||||
|
||||
clusterctl move \
|
||||
--kubeconfig-context=admin@talos-default \
|
||||
--to-kubeconfig=$HOME/.kube/config \
|
||||
--to-kubeconfig-context=admin@management-plane
|
||||
|
Loading…
Reference in New Issue
Block a user