diff --git a/bootstrap/bootstrap.sh b/bootstrap/bootstrap.sh index c8ed8d05..5f51e30d 100755 --- a/bootstrap/bootstrap.sh +++ b/bootstrap/bootstrap.sh @@ -4,30 +4,29 @@ set -e # DHCP server -export PUBLIC_IP="192.168.1.19" - talosctl cluster create \ -p 69:69/udp,8081:8081/tcp \ --workers 0 \ - --endpoint $PUBLIC_IP + --endpoint '192.168.1.19' kubectl taint node talos-default-master-1 node-role.kubernetes.io/master:NoSchedule- -SIDERO_CONTROLLER_MANAGER_HOST_NETWORK=true \ -SIDERO_CONTROLLER_MANAGER_API_ENDPOINT=$PUBLIC_IP \ -SIDERO_CONTROLLER_MANAGER_AUTO_ACCEPT_SERVERS=true \ -clusterctl init -b talos -c talos -i sidero +clusterctl init -b talos -c talos -i sidero --config clusterctl.yaml + +wol '00:23:24:d1:f3:f0' +# wol '00:23:24:d1:f4:d6' +# wol '00:23:24:d1:f5:69' +# wol '00:23:24:e7:04:60' + +kubectl apply -f serverclasses + +# Wait for servers to register sleep 30 -kubectl apply -f serverclasses -kubectl apply -f servers -kubectl apply -f clusters +clusterctl config cluster management-plane -i sidero --config clusterctl.yaml > cluster/management-plane.yaml -wol '00:23:24:d1:f3:f0' -wol '00:23:24:d1:f4:d6' -wol '00:23:24:d1:f5:69' -wol '00:23:24:e7:04:60' +kubectl apply -f cluster/ kubectl get talosconfig \ -l cluster.x-k8s.io/cluster-name=management-plane \ diff --git a/bootstrap/cluster/management-plane.yaml b/bootstrap/cluster/management-plane.yaml index 56b91aac..6255bcb6 100644 --- a/bootstrap/cluster/management-plane.yaml +++ b/bootstrap/cluster/management-plane.yaml @@ -81,7 +81,7 @@ metadata: namespace: default spec: clusterName: management-plane - replicas: 3 + replicas: 0 selector: matchLabels: null template: