1
0
Fork 0
mirror of https://code.forgejo.org/infrastructure/documentation synced 2024-11-25 20:11:11 +00:00

use IPv6 local address, not link local

https://en.wikipedia.org/wiki/Unique_local_address
This commit is contained in:
Earl Warren 2024-10-17 17:15:47 +02:00
parent 8f0c9c17b9
commit b3cfba4952
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -811,7 +811,7 @@ iface enp5s0 inet6 static
#### k8s node #### k8s node
The `10.88.1.5` and `fe88::5` IPs are assigned to the interface with VLAN 4002. The `10.88.1.5` and `fd10::5` IPs are assigned to the interface with VLAN 4002.
``` ```
auto enp5s0.4002 auto enp5s0.4002
@ -820,14 +820,14 @@ iface enp5s0.4002 inet static
netmask 255.255.0.0 netmask 255.255.0.0
vlan-raw-device enp5s0 vlan-raw-device enp5s0
mtu 1400 mtu 1400
up ip addr add fe88::5/48 dev enp5s0.4002 up ip addr add fd10::5/48 dev enp5s0.4002
``` ```
### k8s first server node ### k8s first server node
```sh ```sh
sudo apt-get install curl sudo apt-get install curl
master_node_ip=10.88.1.5,fe88::5 master_node_ip=10.88.1.5,fd10::5
curl -fL https://get.k3s.io | sh -s - server --cluster-init --disable=servicelb --write-kubeconfig-mode=644 --node-ip=$master_node_ip --cluster-cidr=10.42.0.0/16,fd01::/48 --service-cidr=10.43.0.0/16,fd02::/112 curl -fL https://get.k3s.io | sh -s - server --cluster-init --disable=servicelb --write-kubeconfig-mode=644 --node-ip=$master_node_ip --cluster-cidr=10.42.0.0/16,fd01::/48 --service-cidr=10.43.0.0/16,fd02::/112
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -
``` ```
@ -840,7 +840,7 @@ The token is found on the first node in the `/var/lib/rancher/k3s/server/token`
sudo apt-get install curl sudo apt-get install curl
token=??? token=???
master_ip=10.88.1.5 master_ip=10.88.1.5
second_node_ip=10.88.1.6,fe88::6 second_node_ip=10.88.1.6,fd10::6
curl -fL https://get.k3s.io | sh -s - server --token $token --server https://$master_ip:6443 --cluster-init --disable=servicelb --write-kubeconfig-mode=644 --node-ip=$second_node_ip --cluster-cidr=10.42.0.0/16,fd01::/48 --service-cidr=10.43.0.0/16,fd02::/112 curl -fL https://get.k3s.io | sh -s - server --token $token --server https://$master_ip:6443 --cluster-init --disable=servicelb --write-kubeconfig-mode=644 --node-ip=$second_node_ip --cluster-cidr=10.42.0.0/16,fd01::/48 --service-cidr=10.43.0.0/16,fd02::/112
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -
``` ```
@ -853,7 +853,7 @@ The token is found on one of the master nodes in the `/var/lib/rancher/k3s/serve
```sh ```sh
master_ip=10.88.1.5 master_ip=10.88.1.5
etcd_node_ip=10.88.1.3,fe88::3 etcd_node_ip=10.88.1.3,fd10::3
curl -sfL https://get.k3s.io | sh -s - server --token "$token" --server https://$master_ip:6443 --cluster-init --disable-apiserver --disable-controller-manager --disable-scheduler --write-kubeconfig-mode=644 --node-ip=$etcd_node_ip --cluster-cidr=10.42.0.0/16,fd01::/48 --service-cidr=10.43.0.0/16,fd02::/112 curl -sfL https://get.k3s.io | sh -s - server --token "$token" --server https://$master_ip:6443 --cluster-init --disable-apiserver --disable-controller-manager --disable-scheduler --write-kubeconfig-mode=644 --node-ip=$etcd_node_ip --cluster-cidr=10.42.0.0/16,fd01::/48 --service-cidr=10.43.0.0/16,fd02::/112
``` ```