openyurt: [BUG] Cannot setup openyurt with `yurtctl convert --provider kind`
What happened:
Hello, I’d like to deploy the openyurt cluster with yurtctl and kind. It seems that yurtctl supports kind with option --provider kind. However, when I used the following command, it resulted in error.
yurtctl convert -t --provider kind --cloud-nodes ${cloudnodes}
F0921 08:08:07.173618 12871 convert.go:98] fail to complete the convert option: failed to read file /etc/systemd/system/kubelet.service.d/10-kubeadm.conf, open /etc/systemd/system/kubelet.service.d/10-kubeadm.conf: no such file or directory
I read the code and found that when yurtctl starts, it will read the 10-kubeadm.conf (at /etc/systemd/system/kubelet.service.d/10-kubeadm.conf in default) to get pod manifest path. However, the file and directory does not exsit when using kind. Maybe we should come out a better way to solve it.
What you expected to happen: We can use yurtctl to deploy openyurt with kind.
How to reproduce it (as minimally and precisely as possible):
Use yurtctl convert -t --provider kind --cloud-nodes ${cloudnodes} to deploy openyurt with kind.
Environment:
- OpenYurt version: commit: 797c43d
- Kubernetes version (use
kubectl version): 1.20
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 30 (30 by maintainers)
sure