adamant-kite-43734
01/27/2023, 5:50 PMcreamy-pencil-82913
01/27/2023, 7:29 PMdazzling-twilight-41550
01/27/2023, 8:01 PMcreamy-pencil-82913
01/27/2023, 8:02 PMcreamy-pencil-82913
01/27/2023, 8:02 PMcreamy-pencil-82913
01/27/2023, 8:04 PM/var/lib/rancher/k3s/server/tls/
instead of in /etc/rancher/k3s/pki/
?dazzling-twilight-41550
01/27/2023, 9:10 PMsa.key
file. I tried placing the RSA key files the following directories and updating the config.yaml
to point to the directory:
• /etc/kubernetes/pki
• /etc/rancher/k3s/pki
• /etc/rancher/k3s
• /var/lib/rancher/k3s/server/tls
• /var/lib/rancher/k3s/server/pki
• /var/lib/rancher/k3s/server
When I log into the rancher-desktop
distro, I can see that the files are located in the specified folder in the configuration with a mode of 644. However, k3s logs the error stating that the file does not exist. Based on the conversation on the Rancher Desktop thread and the Rancher Desktop documentation, the provisioning scripts execute prior to the start of k3s. I was able to visually verify this is the case. Also, I just retried using the /var/lib/rancher/k3s/server/tls
directory. Here is the log entry from the k3s.log:
Error: failed to parse service-account-issuer-key-file: open "/var/lib/rancher/k3s/server/tls/sa.key": no such file or directory
creamy-pencil-82913
01/27/2023, 9:34 PMcreamy-pencil-82913
01/27/2023, 9:35 PMcreamy-pencil-82913
01/27/2023, 9:35 PMdazzling-twilight-41550
01/27/2023, 10:19 PM