blob: 01639fdfb99f1e84061bff2e86168f430320211d [file] [log] [blame]
giolekva415c2762021-07-23 23:42:58 +04001#!/bin/sh
2
giolekvad1a05282022-04-16 17:21:12 +04003USER=pcloud
4
Giorgi Lekveishvili7659fc32023-06-09 18:02:34 +04005K3S_VERSION="v1.27.2+k3s1" # v1.26.3+k3s1"
giolekvad1a05282022-04-16 17:21:12 +04006
Giorgi Lekveishvili46c627e2023-05-26 12:00:16 +04007MASTER_INIT="192.168.0.11"
8MASTERS=()
Giorgi Lekveishvili12850ee2023-06-22 13:11:17 +04009WORKERS=("192.168.0.12")
10# WORKERS=("192.168.0.12" "192.168.0.13" "192.168.0.14" "192.168.0.15")
giolekvad1a05282022-04-16 17:21:12 +040011
giolekvaf1c35032021-12-02 17:16:30 +040012k3sup install \
13 --k3s-channel stable \
Giorgi Lekveishvili7659fc32023-06-09 18:02:34 +040014 --cluster \
giolekvad1a05282022-04-16 17:21:12 +040015 --user $USER \
Giorgi Lekveishvili46c627e2023-05-26 12:00:16 +040016 --ip $MASTER_INIT \
giolekvad1a05282022-04-16 17:21:12 +040017 --k3s-version $K3S_VERSION \
Giorgi Lekveishvili12850ee2023-06-22 13:11:17 +040018 --k3s-extra-args "--node-taint dodo=dodo:NoSchedule --disable traefik --disable local-storage --disable servicelb --kube-proxy-arg proxy-mode=ipvs --kube-proxy-arg ipvs-strict-arp --flannel-backend host-gw"
Giorgi Lekveishvili46c627e2023-05-26 12:00:16 +040019
Giorgi Lekveishvili46c627e2023-05-26 12:00:16 +040020for IP in "${MASTERS[@]}";
21do
22 k3sup join \
23 --k3s-channel stable \
24 --server \
25 --user $USER \
26 --ip $IP \
27 --server-user $USER \
28 --server-ip $MASTER_INIT \
29 --k3s-version $K3S_VERSION \
30 --k3s-extra-args "--disable traefik --disable local-storage --disable servicelb --kube-proxy-arg proxy-mode=ipvs --kube-proxy-arg ipvs-strict-arp --flannel-backend host-gw"
31done
32
giolekva415c2762021-07-23 23:42:58 +040033
giolekvad1a05282022-04-16 17:21:12 +040034for IP in "${WORKERS[@]}";
35do
36 k3sup join \
giolekvaf1c35032021-12-02 17:16:30 +040037 --k3s-channel stable \
giolekvad1a05282022-04-16 17:21:12 +040038 --ip $IP \
39 --user $USER \
40 --server-user $USER \
Giorgi Lekveishvili46c627e2023-05-26 12:00:16 +040041 --server-ip $MASTER_INIT \
giolekvad1a05282022-04-16 17:21:12 +040042 --k3s-version $K3S_VERSION
43done