When installing flatcar on an VM or after changing it’s IP address you will see the following inside Lens

image.png

Instructions (production)

Note: This will cause some downtime

  1. SSH into your server

  2. Execute sudo vi /etc/systemd/system/k3s.service to open the k3s service file in VI

  3. Add ‘—tls-san=YOUR.IP.HERE’ \ to the ExecStart command

    Untitled

  4. Save and close the file

  5. Execute

    sudo kubectl -n kube-system delete secrets/k3s-serving
    sudo mv /var/lib/rancher/k3s/server/tls/dynamic-cert.json /tmp/dynamic-cert.json
    sudo systemctl restart k3s
    
  6. This will delete the old k3s certificate and restart k3s to generate a new one

Instructions (development)

This method is insecure, and should not be used in production

  1. Open the Settings of your Cluster

    Untitled

  2. Click on the filepath to open an explorer Window

    Untitled