rancher / system-upgrade-controller

In your Kubernetes, upgrading your nodes
Apache License 2.0
723 stars 86 forks source link

apply-system-agent-upgrader job not work when use symble link to /var/lib/rancher #290

Open yofeng2021 opened 7 months ago

yofeng2021 commented 7 months ago

I hava created a sysmbol link to /var/lib/rancher, but container cant recgonise a symbol link. how can i fix this? can i mount an additional volume for the job by changing the system-upgrade-controller crd? or there are some other methods not need to change the crd?

brandond commented 7 months ago

What does your job spec look like? the system-upgrade-controller itself doesn't care about any paths on the nodes, it sounds like your issue is with the job or job pod?

MartySherrill commented 6 months ago

I also ran into this apply-system-agent-upgrader error, which I found described here:

https://slack-archive.rancher.com/t/8600780/does-anybody-know-what-is-the-purpose-of-system-upgrade-cont

mkdir: can't create directory '/host/var/lib/rancher/': No such file or directory

I wasn't able to grok the right way to have Rancher utilize a different filesystem for /var/lib/rancher, but ChatGPT encouraged me to try using a "bind mount" instead of a symlink, and the apply-system-agent-upgrader job now seems to succeed.