Open Jaycean opened 2 years ago
Hi @Jaycean
KK will do nothing about container runtime when installing a k3s cluster. The containerd
which is installed in your cluster is installed by the k3s.
So, you need to refer to the k3s document.
Here are some documents I found, that maybe you needed:
https://rancher.com/docs/k3s/latest/en/installation/private-registry/
https://rancher.com/docs/k3s/latest/en/installation/airgap/
https://rancher.com/docs/k3s/latest/en/advanced/#configuring-containerd
Hi @24sama Thks,I have solved this problem by manually modifying the configuration, but I am curious about why the problem fixed by PR #1271 does not take effect. I need further tests
This PR #1271 is related to the containerd
installed by kk.
About Kubernetes:
KK will install the containerd
and configure it. This PR is for this case.
About K3s:
KK only exec the k3s official install script and the containerd
is installed by k3s that couldn't be managed by kk.
This PR #1271 is related to the
containerd
installed by kk.
- About Kubernetes: KK will install the
containerd
and configure it. This PR is for this case.- About K3s: KK only exec the k3s official install script and the
containerd
is installed by k3s that couldn't be managed by kk.
Yes, I tested that the configuration of KK for containerd did not take effect. I don't know why. When I have time, I'll take a further test to see what's wrong.
This PR #1271 is related to the
containerd
installed by kk.
- About Kubernetes: KK will install the
containerd
and configure it. This PR is for this case.- About K3s: KK only exec the k3s official install script and the
containerd
is installed by k3s that couldn't be managed by kk.Yes, I tested that the configuration of KK for containerd did not take effect. I don't know why. When I have time, I'll take a further test to see what's wrong.
Other information:
KK only does a configuration task when the node didn't have a containerd
. If you manually installed the containerd or docker at first, kk will skip the configuration task.
This PR #1271 is related to the
containerd
installed by kk.
- About Kubernetes: KK will install the
containerd
and configure it. This PR is for this case.- About K3s: KK only exec the k3s official install script and the
containerd
is installed by k3s that couldn't be managed by kk.Yes, I tested that the configuration of KK for containerd did not take effect. I don't know why. When I have time, I'll take a further test to see what's wrong.
Other information: KK only does a configuration task when the node didn't have a
containerd
. If you manually installed the containerd or docker at first, kk will skip the configuration task.
What I can confirm is that I have not pre installed docker and containerd Thks.
About K3s: KK only exec the k3s official install script and the containerd is installed by k3s that couldn't be managed by kk.
So about this, kk will do nothing about configuring the containerd
. That is expected. Because the containerd
didn't installed by kk.
Other information: KK only does a configuration task when the node didn't have a containerd. If you manually installed the containerd or docker at first, kk will skip the configuration task.
This logic also matches this information.
Therefore, unfortunately, if you want to use kk to install a k3s cluster, you need set containerd
manually.
you can use k8e, it integrate with containerd.
curl -sfL https://getk8e.com/install.sh | K8E_TOKEN=ilovek8e INSTALL_K8E_EXEC="server --cluster-init --write-kubeconfig-mode 644" sh -
What is version of KubeKey has the issue?
version.BuildInfo{Version:"latest+unreleased", GitCommit:"b21bdd4d858b87d9c5e93150a7c1fb5495eeed24", GitTreeState:"dirty", GoVersion:"go1.17.11"}
What is your os environment?
centos 7
KubeKey config file
A clear and concise description of what happend.
containerd does not apply insecureRegistries in config.toml
I see that the historical PR #1271 has fixed this problem. Why is my k3s configuration still not effective?
Is it my config What is wrong with yaml configuration?
I have added the installation of k3s 1.18.4, which is required by the company's cluster at present, but the configuration cannot take effect in containerd at present
Thks for help!!!
/var/lib/rancher/k3s/agent/etc/containerd/config.toml log
Relevant log output
Additional information
No response