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

BUG: dnsDomain does not take effect in kubelet when using custom deployment #3799

Closed
Horus-K opened this issue Aug 30, 2023 · 3 comments
Closed
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@Horus-K
Copy link

Horus-K commented Aug 30, 2023

Sealos Version

4.3.2

How to reproduce the bug?

sealos gen labring/kubernetes-docker:v1.22.17 labring/helm:v3.12.3 labring/calico:v3.24.6
--masters 172.12.1.150 --passwd 123456 > Clusterfile
添加自定义kubeadm参数
image
kubelet未识别,会造成pod dns异常
/var/lib/kubelet/config.yaml
image

What is the expected behavior?

No response

What do you see instead?

No response

Operating environment

- Sealos version:
- Docker version:
- Kubernetes version:
- Operating system:
- Runtime environment:
- Cluster size:
- Additional information:

Additional information

No response

@Horus-K Horus-K added the kind/bug Something isn't working label Aug 30, 2023
@sealos-ci-robot sealos-ci-robot changed the title BUG: 使用自定义部署时dnsDomain未在kubelet中生效 BUG: dnsDomain does not take effect in kubelet when using custom deployment Aug 30, 2023
@cuisongliu cuisongliu added this to the v4.3 milestone Aug 31, 2023
@yangxggo
Copy link
Contributor

'clusterDomain' in kubelet will be same with 'dnsDomain' in kubeadm configuration IF you deploy k8s by kubeadm directly,
but it will not be modified when you use sealos

@Horus-K
Copy link
Author

Horus-K commented Aug 31, 2023

Kubelet can be configured during initialization or explained in the custom deployment document https://sealos.io/zh-Hans/docs/lifecycle-management/operations/run-cluster/gen-apply-cluster

kubeadm config print init-defaults --component-configs KubeletConfiguration
...
clusterDNS:
- 10.96.0.10
clusterDomain: cluster.local

@cuisongliu
Copy link
Collaborator

fixed by main branch

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

No branches or pull requests

3 participants