kube-install icon indicating copy to clipboard operation
kube-install copied to clipboard

使用0.9.0-beta安装1.28后显示集群状态未知

Open laodao opened this issue 1 year ago • 2 comments

操作系统为ubuntu server20,安装完毕后,coredns故障,状态为CrashLoopBackOff ,经排查为ubuntu的nameserver没有正确配置,似乎kube-install安装程序不能正确配置dns。

laodao avatar Jan 16 '24 15:01 laodao

There are many ways to work around this issue, some are listed here: --Add the following to your kubelet config yaml: resolvConf: (or via command line flag --resolv-conf deprecated in 1.10). Your “real” resolv.conf is the one that contains the actual IPs of your upstream servers, and no local/loopback address. This flag tells kubelet to pass an alternate resolv.conf to Pods. For systems using systemd-resolved, /run/systemd/resolve/resolv.conf is typically the location of the “real” resolv.conf, although this can be different depending on your distribution. --Disable the local DNS cache on host nodes, and restore /etc/resolv.conf to the original. --A quick and dirty fix is to edit your Corefile, replacing forward . /etc/resolv.conf with the IP address of your upstream DNS, for example forward . 8.8.8.8. But this only fixes the issue for CoreDNS, kubelet will continue to forward the invalid resolv.conf to all default dnsPolicy Pods, leaving them unable to resolve DNS.

cloudnativer avatar Apr 03 '24 09:04 cloudnativer

Thank you for your feedback. We have fixed this issue in the new version (https://github.com/cloudnativer/kube-install/releases/tag/v0.9.0) .

cloudnativer avatar Apr 03 '24 10:04 cloudnativer