diff --git a/k0s/.gitignore b/k0s/.gitignore new file mode 100644 index 0000000..3ce23d5 --- /dev/null +++ b/k0s/.gitignore @@ -0,0 +1,2 @@ +kubeconfig +.envrc diff --git a/k0s/README.md b/k0s/README.md new file mode 100644 index 0000000..c9a7f8e --- /dev/null +++ b/k0s/README.md @@ -0,0 +1,17 @@ +# k0s setup + +## Issues + +### k0sctl apply failed due to SSH host key mismatch + +Fix: disable ssh host key checking for Tailscale nodes + +``` +Host 100.*.*.* + StrictHostKeyChecking no +``` + +### machine-id not unique + +Cause: cloning disk using proxmox +Fix: https://unix.stackexchange.com/a/403054 diff --git a/k0s/k0sctl.yaml b/k0s/k0sctl.yaml new file mode 100644 index 0000000..23daf61 --- /dev/null +++ b/k0s/k0sctl.yaml @@ -0,0 +1,23 @@ +apiVersion: k0sctl.k0sproject.io/v1beta1 +kind: Cluster +metadata: + name: labsV2 +spec: + hosts: + - ssh: + address: 100.85.154.134 + user: pokgak + port: 22 + keyPath: ~/.ssh/id_ed25519 + role: controller + privateInterface: tailscale0 + - ssh: + address: 100.100.59.28 + user: pokgak + port: 22 + keyPath: ~/.ssh/id_ed25519 + role: worker + privateInterface: tailscale0 + k0s: + version: 1.27.5+k0s.0 + dynamicConfig: false