Hi There Please can you help me
You only allow 2 URLs so I replace https with xxxxs
I installed the first 2 nodes :
Create first master node
sudo su -
/usr/local/bin/k3s-killall.sh
/usr/local/bin/k3s-uninstall.sh
/usr/local/bin/k3s-agent-uninstall.sh
node_ip="196.36.100.111"
node_name="adv-k3s-01.agathos.co.za"
curl -sfL xxxxs://get.k3s.io | K3S_NODE_IP=${node_ip} K3S_NODE_NAME=${node_name} sh -s - server --cluster-init
Create Second master node
sudo su -
/usr/local/bin/k3s-killall.sh
/usr/local/bin/k3s-uninstall.sh
/usr/local/bin/k3s-agent-uninstall.sh
k3s_token="K10afa1d5cc85020a7b58d3226dd7e2470d7750f230874b1a5aecba3f69202fcfb7::server:e05028c1c6ab80bbbfa820d4455da640"
node_ip="196.36.100.113"
node_name="adv-k3s-03.agathos.co.za"
k3s_url="xxxx://adv-k3s-01.agathos.co.za:6443"
curl -sfL xxxx://get.k3s.io | K3S_TOKEN=${k3s_token} K3S_NODE_IP=${node_ip} K3S_NODE_NAME=${node_name} sh -s - server --server ${k3s_url}
kubectl get nodes
NAME STATUS ROLES AGE VERSION
adv-k3s-01.agathos.co.za Ready control-plane,etcd,master 39m v1.24.4+k3s1
adv-k3s-03.agathos.co.za Ready control-plane,etcd,master 30m v1.24.4+k3s1
Create Third master node
sudo su -
/usr/local/bin/k3s-killall.sh
/usr/local/bin/k3s-uninstall.sh
/usr/local/bin/k3s-agent-uninstall.sh
k3s_token="K10afa1d5cc85020a7b58d3226dd7e2470d7750f230874b1a5aecba3f69202fcfb7::server:e05028c1c6ab80bbbfa820d4455da640"
node_ip="196.36.100.112"
node_name="adv-k3s-02.agathos.co.za"
k3s_url="xxxxs://adv-k3s-01.agathos.co.za:6443"
curl -sfL xxxxs://get.k3s.io | K3S_TOKEN=${k3s_token} K3S_NODE_IP=${node_ip} K3S_NODE_NAME=${node_name} sh -s - server --server ${k3s_url}
I get this running journalctl -xe | less
Sep 14 12:49:55 adv-k3s-02 k3s[82438]: time=“2022-09-14T12:49:55-04:00” level=info msg=“Logging containerd to /var/lib/rancher/k3s/agent/containerd/containerd.log”
Sep 14 12:49:55 adv-k3s-02 k3s[82438]: time=“2022-09-14T12:49:55-04:00” level=info msg=“Running containerd -c /var/lib/rancher/k3s/agent/etc/containerd/config.toml -a /run/k3s/containerd/containerd.sock --state /run/k3s/containerd --root /var/lib/rancher/k3s/agent/containerd”
Sep 14 12:49:56 adv-k3s-02 k3s[82438]: time=“2022-09-14T12:49:56-04:00” level=info msg=“Containerd is now running”
Sep 14 12:49:56 adv-k3s-02 k3s[82438]: time=“2022-09-14T12:49:56-04:00” level=info msg=“Connecting to proxy” url=“wss://127.0.0.1:6443/v1-k3s/connect”
Sep 14 12:49:56 adv-k3s-02 k3s[82438]: time=“2022-09-14T12:49:56-04:00” level=info msg=“Running kubelet --address=0.0.0.0 --anonymous-auth=false --authentication-token-webhook=true --authorization-mode=Webhook --cgroup-driver=systemd --client-ca-file=/var/lib/rancher/k3s/agent/client-ca.crt --cloud-provider=external --cluster-dns=10.43.0.10 --cluster-domain=cluster.local --container-runtime-endpoint=unix:///run/k3s/containerd/containerd.sock --containerd=/run/k3s/containerd/containerd.sock --eviction-hard=imagefs.available<5%,nodefs.available<5% --eviction-minimum-reclaim=imagefs.available=10%,nodefs.available=10% --fail-swap-on=false --healthz-bind-address=127.0.0.1 --hostname-override=adv-k3s-02.agathos.co.za --kubeconfig=/var/lib/rancher/k3s/agent/kubelet.kubeconfig --node-labels= --pod-infra-container-image=rancher/mirrored-pause:3.6 --pod-manifest-path=/var/lib/rancher/k3s/agent/pod-manifests --read-only-port=0 --resolv-conf=/etc/resolv.conf --serialize-image-pulls=false --tls-cert-file=/var/lib/rancher/k3s/agent/serving-kubelet.crt --tls-private-key-file=/var/lib/rancher/k3s/agent/serving-kubelet.key”
Sep 14 12:49:56 adv-k3s-02 k3s[82438]: time=“2022-09-14T12:49:56-04:00” level=info msg=“Handling backend connection request [adv-k3s-02.agathos.co.za]”
Sep 14 12:49:56 adv-k3s-02 k3s[82438]: time=“2022-09-14T12:49:56-04:00” level=info msg=“Adding member adv-k3s-02.agathos.co.za-297331d5=xxxxs://196.36.100.112:2380 to etcd cluster [adv-k3s-01.agathos.co.za-f62a7bed=xxxxs://196.36.100.111:2380 adv-k3s-03.agathos.co.za-f8824671=xxxxs://196.36.100.113:2380]”
Sep 14 12:49:56 adv-k3s-02 k3s[82438]: {“level”:“warn”,“ts”:“2022-09-14T12:49:56.813-0400”,“logger”:“etcd-client”,“caller”:“v3@v3.5.3-k3s1/retry_interceptor.go:62”,“msg”:“retrying of unary invoker failed”,“target”:“etcd-endpoints://0xc0007f5c00/196.36.100.111:2379”,“attempt”:0,“error”:“rpc error: code = Unavailable desc = etcdserver: unhealthy cluster”}
Sep 14 12:49:56 adv-k3s-02 k3s[82438]: time=“2022-09-14T12:49:56-04:00” level=fatal msg=“ETCD join failed: etcdserver: unhealthy cluster”
Sep 14 12:49:56 adv-k3s-02 systemd[1]: k3s.service: Main process exited, code=exited, status=1/FAILURE
Sep 14 12:49:56 adv-k3s-02 systemd[1]: k3s.service: Failed with result ‘exit-code’.