File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -189,10 +189,14 @@ main() {
189189 local is_physical=" $3 "
190190 # https://github.com/tinkerbell/charts/pkgs/container/charts%2Fstack
191191 local helm_chart_version=" 0.4.4"
192- local loadbalancer_interface=" eth1"
193192 local kubectl_version=" 1.28.3"
194193 local k3s_version=" v1.30.2-k3s1"
195194
195+ local loadbalancer_interface=" eth1"
196+ if [[ -n " $4 " ]]; then
197+ loadbalancer_interface=" $4 "
198+ fi
199+
196200 update_apt
197201 prepare_system
198202 # disable_network_offloads
@@ -216,3 +220,13 @@ if [[ ${BASH_SOURCE[0]} == "$0" ]]; then
216220 echo loadbalancer_ip=" $1 "
217221 echo " all done!"
218222fi
223+
224+ # kubectl config set-context --current --namespace=tink-system
225+ # alias k='kubectl'
226+
227+ # INTERFACE: nsenter -t1 -n ip route | awk '/default/ {print $5}' | head -n1
228+ # IP_LOAD_BALANCER: nsenter -t1 -n ip -4 addr show <INTERFACE> | awk '/inet / {print $2}' | cut -d/ -f1
229+
230+ # loadBalancerIP | folder_manifests | is_physical | loadbalancer_interface
231+ # ./setup.sh "<IP_LOAD_BALANCER>" "." true <INTERFACE>
232+ # ./setup.sh "192.168.1.5" "." true enp1s0
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ create_datacenter() {
88 --size g4s.2xlarge \
99 --sshkey $KUBEFIRST_TEAM_INFO \
1010 --diskimage ubuntu-jammy \
11- --script ${DIR} /cloud-init \
11+ # --script ${DIR}/cloud-init \
1212 --initialuser root colony-$KUBEFIRST_TEAM_INFO \
1313 --hostname colony-$KUBEFIRST_TEAM_INFO \
1414 --wait \
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ main() {
4040 unblock_local_ssh
4141 create_datacenter
4242 wait_for_civo_status
43- setup_vagrant
43+ # setup_vagrant
4444 ;;
4545 " destroy datacenter" )
4646 civo_destroy
You can’t perform that action at this time.
0 commit comments