-
Notifications
You must be signed in to change notification settings - Fork 0
Physical Cluster Deployment
Andrรฉ Lima edited this page Apr 13, 2024
·
6 revisions
Ensure that helm
, cilium-cli
, avahi
and, yq
is installed:
sudo pacman -Sy helm cilium-cli avahi yq
Ensure that your computer can configure IPV4LL routes or install avahi-autoipd
and then configure it to the target interface connected to the switch.
Ensure that jmespath
is installed:
pip install jmespath
TARGET_DEV="end0"
rm ~/.ssh/known_hosts # to avoid failed host verification issues, if multiple tries are made
sudo ip a add 10.10.0.199/24 dev $TARGET_DEV || sudo ip r add 10.10.0.0/24 dev $TARGET_DEV src 10.10.0.199
You can run this command (inside the cluster network):
export NODE_IP="10.10.0.4"; mkdir -p "$HOME/.kube" && ssh "ni@$NODE_IP" -i .ssh/new_key "sudo cat /etc/rancher/rke2/rke2.yaml" | yq ".clusters[0].cluster.server=\"https://$NODE_IP:6443/\"" > ~/.kube/config; unset NODE_IP
๐๐๐๐๐๐๐๐๐๐๐ (โธโธโธ>๏น<โธโธโธ)