-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support k3s-agent deployment #128
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jvassev, thanks for the contribution, looks good to me. Just one minor request (see comments below).
Thanks!
@@ -1509,6 +1533,8 @@ function main() { | |||
do_config_kubelet_rke2 | |||
elif kubelet_docker_systemd_deployment; then | |||
do_config_kubelet_docker_systemd | |||
elif kubelet_k3s_deploymet; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add comment after line 1526 above.
I discovered a few more missing pieces and added them too.
Simple pod recreation solves it. That's why I'm adding Is there a smarter way to solve this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ...
k8s/scripts/kubelet-config-helper.sh
Outdated
@@ -1500,7 +1534,7 @@ function main() { | |||
# * RKE2: Host-based kubelet managed by rke2-agent's systemd service (Rancher's RKE2 approach). | |||
# * Systemd+Docker: Docker-based kubelet managed by a systemd service (Lokomotive's approach). | |||
# * Systemd: Host-based kubelet managed by a systemd service (most common approach). | |||
# | |||
# * Systemd: k3s when run as an agent (k3s-agent.service), if k3s is run as controlplane + node (k3s.service) it will not work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks; to avoid having two "systemd" entries, I would re-word as: "k3s: when run as agent only (if k3s is run as control plane + node (i.e., k3s.service) it won't work)."
I don't know, but it's certainly not ideal. Is it because the k3s agent is not fully stopped after |
In my case, it was node-exporter but it happens on other pods like calico-node. I'm sure |
With that latest change I think the pod running the |
After some more debugging i noticed that it just takes too long to kill the old |
Mmm ... not sure about this. The Thus the call to |
Hi @jvassev, thanks again for the contribution. Where is this PR at? Is is ready for merging or are you still debugging/testing it? Thanks! |
No description provided.