rancher / rke2

https://docs.rke2.io/
Apache License 2.0
1.57k stars 268 forks source link

[Release 1.28] Windows fails when `cni: none` is configured #6829

Closed rbrtbnfgl closed 1 month ago

rbrtbnfgl commented 1 month ago

Backport for #6819

VestigeJ commented 1 month ago

I originally misinterpreted this configuration based on the validation steps provided - have confirmed though all active branches with cni: non on the server still correctly cluster up with windows agents

Environment Details

Validated using COMMIT=5d8fe2c976335f712ca3ff8f1b1bd4684d703d2f

Infrastructure

Node(s) CPU architecture, OS, and version:

Linux 6.4.0-150600.23.17-default x86_64 GNU/Linux PRETTY_NAME="SUSE Linux Enterprise Server 15 SP6"

Cluster Configuration: note nodes are NotReady waiting for CNI installation due to "none"

NAME               STATUS     ROLES                       AGE    VERSION
ec2amaz-fslbpgh    NotReady   <none>                      2m1s   v1.28.14
ip-3-3-3-17        NotReady   control-plane,etcd,master   14m    v1.28.14+rke2r1

Config.yaml:

node-external-ip: 3.3.3.42
token: YOUR_TOKEN_HERE
write-kubeconfig-mode: 644
debug: true
cni: none

Reproduction

``` $ curl https://get.rke2.io --output install-"rke2".sh $ sudo chmod +x install-"rke2".sh $ sudo groupadd --system etcd && sudo useradd -s /sbin/nologin --system -g etcd etcd $ sudo modprobe ip_vs_rr $ sudo modprobe ip_vs_wrr $ sudo modprobe ip_vs_sh $ sudo printf "on_oovm.panic_on_oom=0 \nvm.overcommit_memory=1 \nkernel.panic=10 \nkernel.panic_ps=1 \nkernel.panic_on_oops=1 \n" > ~/60-rke2-cis.conf $ sudo cp 60-rke2-cis.conf /etc/sysctl.d/ $ sudo systemctl restart systemd-sysctl $ COMMIT=5d8fe2c976335f712ca3ff8f1b1bd4684d703d2f $ sudo INSTALL_RKE2_COMMIT=$COMMIT INSTALL_RKE2_EXEC=server ./install-rke2.sh; $ go_rke2 //sudo systemctl start rke2-server $ get_token //emit rke2 cluster token for agent joining config $ kg no,po -A //kubectl get nodes,pods -A ``` **Results:** $ kgp -A ``` NAMESPACE NAME READY STATUS RESTARTS AGE kube-system cloud-controller-manager-ip-3-3-3-42 1/1 Running 0 13m kube-system etcd-ip-3-3-3-42 1/1 Running 0 12m kube-system helm-install-rke2-coredns-dhq5p 0/1 Completed 0 12m kube-system helm-install-rke2-ingress-nginx-cxf4d 0/1 Pending 0 12m kube-system helm-install-rke2-metrics-server-grzwz 0/1 Pending 0 12m kube-system helm-install-rke2-snapshot-controller-crd-p6zfq 0/1 Pending 0 12m kube-system helm-install-rke2-snapshot-controller-qdp6k 0/1 Pending 0 12m kube-system helm-install-rke2-snapshot-validation-webhook-47lbg 0/1 Pending 0 12m kube-system kube-apiserver-ip-3-3-3-42 1/1 Running 0 13m kube-system kube-controller-manager-ip-3-3-3-42 1/1 Running 0 13m kube-system kube-proxy-ip-3-3-3-42 1/1 Running 0 12m kube-system kube-scheduler-ip-3-3-3-42 1/1 Running 0 13m kube-system rke2-coredns-rke2-coredns-autoscaler-7d84dd4cb7-l8mll 0/1 Pending 0 12m kube-system rke2-coredns-rke2-coredns-d69f79756-tbj8b 0/1 Pending 0 12m ```