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

Almalinux 9 - missing files after ./kk create cluster -f config-sample.yaml | /etc/kubernetes/bootstrap-kubelet.conf /etc/kubernetes/kubelet.conf #2163

Open
n00bsi opened this issue Mar 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@n00bsi
Copy link

n00bsi commented Mar 8, 2024

What is version of KubeKey has the issue?

kk version: &version.Info{Major:"3", Minor:"1", GitVersion:"v3.1.0-rc.0", GitCommit:"7a58ce78510a60a49cf427e5b26f0e7a3c75dbaa", GitTreeState:"clean", BuildDate:"2024-03-01T02:09:29Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"

What is your os environment?

Almalinux 9

KubeKey config file

No response

A clear and concise description of what happend.

after build config yaml with:

./kk create config --with-kubesphere v3.4.1 --with-kubernetes v1.29.1

and run:

./kk create cluster -f config-sample.yaml

I found that on the nodes the follwing config files are missing:

/etc/kubernetes/bootstrap-kubelet.conf /etc/kubernetes/kubelet.conf

EnvironmentFile=-/etc/default/kubelet
Environment="KUBELET_EXTRA_ARGS=--node-ip=192.168.122.202 --hostname-override=k8sn12 "
ExecStart=
ExecStart=/usr/local/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS
[root@k8sn12 system]# systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; preset: disabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: activating (auto-restart) (Result: exit-code) since Fri 2024-03-08 12:14:27 CET; 9s ago
Docs: http://kubernetes.io/docs/
Process: 19806 ExecStart=/usr/local/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILUR>
Main PID: 19806 (code=exited, status=1/FAILURE)
CPU: 137ms
lines 1-9/9 (END)

how to build the config files ?

on the node I run the ./kk create cluster -f config-sample.yaml

in the subdiretory: kubekey/k8sn12/
there is no: kubelet.conf bootstrap-kubelet.conf

Relevant log output

No response

Additional information

No response

@n00bsi n00bsi added the bug Something isn't working label Mar 8, 2024
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

1 participant