Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
laodao opened this issue Jan 16, 2024 · 2 comments
Open

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

laodao opened this issue Jan 16, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@laodao
Copy link

laodao commented Jan 16, 2024

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

@cloudnativer
Copy link
Owner

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 cloudnativer self-assigned this Apr 3, 2024
@cloudnativer cloudnativer added the bug Something isn't working label Apr 3, 2024
@cloudnativer
Copy link
Owner

cloudnativer commented Apr 3, 2024

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) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants