Closed tbrtje closed 2 years ago
Have you tried setting tls-san
k3s_server:
advertise-address: "{{ ansible_host }}"
tls-san: "{{ ansible_host }}"
disable:
- traefik
k3s_agent:
node-ip: "{{ ansible_host }}"
node-external-ip: "{{ ansible_host }}"
k3s_release_version: stable
k3s_become_for_all: true
https://rancher.com/docs/k3s/latest/en/installation/install-options/server-config/#listeners
Thank you for your help :) It turns out the issue had nothing to do with the certificate. The node just didn't start, as it was running in an LXC-Container which wasn't able to utilise overlayfs. Changing the snapshotter to native did the trick.
Summary
When creating a single-node-cluster, the cluster won't start. k3s is up and running, but kubectl shows no nodes. The k3s-service logs the following lines over and over:
Issue Type
Controller Environment and Configuration
attached to this issue
Steps to Reproduce
Run this role with the following vars, with ansible_host being the ip of the ubuntu-node.
Expected Result
Actual Result
The api-server starts up, but no node is registered, therefore no workloads are sheduled.