Allowing k3s-agent to start containerd, when there is no access to k3s-server #11265
Unanswered
milan-mkip
asked this question in
Q&A
Replies: 1 comment 3 replies
-
A connection to at least one server is required for the agent to start any of the embedded components. The agent receives configuration from the server, and this configuration is necessary to start both containerd and kubelet. We have considered in the past caching some configuration between runs, but this would create the possibility of the agent starting up with stale configuration that is out of sync with the rest of the cluster. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm prototyping a system, where devices (k3s nodes) are in locations with inconsistent network access. I'm deploying pods to said nodes, and they remain running even during such connection outages.
However if the node happens to reboot during such connection outage, k3s-agent doesn't seem to run containerd and attempt to start the pods until the connection is recovered.
with
journalctl -eu k3s-agent
I could see the following error repeat until the connection was made:failed to get CA certs: Get \"https://127.0.0.1:6444/cacerts\": EOF
127.0.0.1:6444/cacerts seems to redirect to the api server which is not available until there is a network connection...
After the connection is made, containerd starts and the node starts working as seen below.
Is there a way to configure k3s-agent to automatically run containerd and the previously known pods even after a reboot without network access?
Beta Was this translation helpful? Give feedback.
All reactions