This issue describes a non-common certification problem related to K3S.
According to this documentation (https://rancher.com/docs/k3s/latest/en/advanced/#certificate-rotation), certificates automatically expire every 12 months. Also that 'If the certificates are expired or have fewer than 90 days remaining before they expire, the certificates are rotated when K3s is restarted.'. However the rotation doesnt work very well for us it would seem.
In order to get rotation to work, you need to delete (or at least backup) your //var/lib/rancher/k3s/server/tls directory. Then you need to restart k3s. This will generate a new set of keys for you. See this tutorial: https://www.ibm.com/support/pages/node/6444205 (resolving the problem).
Then you will need to copy the new k3s.yaml file (/etc/rancher/k3s/j3s.yaml) to all of the desktop machines. Also have to change all the URLs to point to the flyingserver. A script can be written to do this.
Then! It would seem that the dashboard does not like this. Either all pods need to be manually restarted, or you can kubectl delete the dashboard deployment file. Downside to that is that it also attempts to delete the kubernetes-dashboard namespace. This may break as the dashboard gets stuck on terminating and you cannot redeploy the dashboard. Therefore to delete the dashboard, you will need to run kubectl proxy in one terminal, then follow the isntructions in this comment: kubernetes/kubernetes#19317 (comment)
This issue describes a non-common certification problem related to K3S.
According to this documentation (https://rancher.com/docs/k3s/latest/en/advanced/#certificate-rotation), certificates automatically expire every 12 months. Also that 'If the certificates are expired or have fewer than 90 days remaining before they expire, the certificates are rotated when K3s is restarted.'. However the rotation doesnt work very well for us it would seem.
In order to get rotation to work, you need to delete (or at least backup) your /
/var/lib/rancher/k3s/server/tlsdirectory. Then you need to restart k3s. This will generate a new set of keys for you. See this tutorial: https://www.ibm.com/support/pages/node/6444205 (resolving the problem).Then you will need to copy the new k3s.yaml file (/etc/rancher/k3s/j3s.yaml) to all of the desktop machines. Also have to change all the URLs to point to the flyingserver. A script can be written to do this.
Then! It would seem that the dashboard does not like this. Either all pods need to be manually restarted, or you can
kubectl deletethe dashboard deployment file. Downside to that is that it also attempts to delete the kubernetes-dashboard namespace. This may break as the dashboard gets stuck on terminating and you cannot redeploy the dashboard. Therefore to delete the dashboard, you will need to runkubectl proxyin one terminal, then follow the isntructions in this comment: kubernetes/kubernetes#19317 (comment)