RKE2 安装很顺利,但是一旦我通过 Helm 安装 Rancher 并尝试访问管理 UI,我就无法访问并收到“404 Not Found”错误。
root@rancher-master-01:~# kubectl -n kube-system logs -f rke2-ingress-nginx-controller-46nh6
W0228 16:56:38.654557 8 controller.go:1112] Service "cattle-system/rancher" does not have any active Endpoint.
W0228 16:56:38.654630 8 controller.go:1333] Error getting SSL certificate "cattle-system/tls-rancher-ingress": local SSL certificate cattle-system/tls-rancher-ingress was not found. Using default certificate
root@rancher-master-01:~# kubectl get endpoints,svc,ingress -n cattle-system
NAME ENDPOINTS AGE
endpoints/rancher 10.42.2.3:80,10.42.3.7:80,10.42.4.7:80 + 3 more... 63m
endpoints/rancher-webhook 10.42.4.10:9443 61m
endpoints/webhook-service 10.42.4.10:8777 61m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/rancher ClusterIP 10.43.185.148 <none> 80/TCP,443/TCP 63m
service/rancher-webhook ClusterIP 10.43.102.206 <none> 443/TCP 61m
service/webhook-service ClusterIP 10.43.74.170 <none> 443/TCP 61m
NAME CLASS HOSTS ADDRESS PORTS AGE
ingress.networking.k8s.io/rancher <none> odsrancher.x.x.com 172.22.137.148,172.22.137.149,172.22.137.150,172.22.137.151,172.22.137.186 80, 443 63m