From 3faebb450777eafd786d4892b7a48849f3534d50 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Tue, 20 Jul 2021 15:59:42 +0700 Subject: [PATCH] Apply directories --- bootstrap/bootstrap.sh | 25 ++++++------------- .../{ => clusters}/management-plane.yaml | 0 2 files changed, 8 insertions(+), 17 deletions(-) mode change 100644 => 100755 bootstrap/bootstrap.sh rename bootstrap/{ => clusters}/management-plane.yaml (100%) diff --git a/bootstrap/bootstrap.sh b/bootstrap/bootstrap.sh old mode 100644 new mode 100755 index aa6a3095..c8ed8d05 --- a/bootstrap/bootstrap.sh +++ b/bootstrap/bootstrap.sh @@ -18,25 +18,16 @@ SIDERO_CONTROLLER_MANAGER_API_ENDPOINT=$PUBLIC_IP \ SIDERO_CONTROLLER_MANAGER_AUTO_ACCEPT_SERVERS=true \ clusterctl init -b talos -c talos -i sidero -kubectl get servers -o wide +sleep 30 + +kubectl apply -f serverclasses +kubectl apply -f servers +kubectl apply -f clusters wol '00:23:24:d1:f3:f0' - -kubectl edit server.metal.sidero.dev/d7a60000-720c-7a4c-81d5-1db10300eae2 -# spec: -# configPatches: -# - op: replace -# path: /machine/install/disk -# value: /dev/sda - -export CONTROL_PLANE_SERVERCLASS=any -export WORKER_SERVERCLASS=any -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 apply -f management-plane.yaml +wol '00:23:24:d1:f4:d6' +wol '00:23:24:d1:f5:69' +wol '00:23:24:e7:04:60' kubectl get talosconfig \ -l cluster.x-k8s.io/cluster-name=management-plane \ diff --git a/bootstrap/management-plane.yaml b/bootstrap/clusters/management-plane.yaml similarity index 100% rename from bootstrap/management-plane.yaml rename to bootstrap/clusters/management-plane.yaml