From 6718f868e29f824c5e67bc9b5f35e47561dad3f6 Mon Sep 17 00:00:00 2001 From: Aiman Ismail Date: Sat, 16 Sep 2023 16:28:53 +0800 Subject: [PATCH] add k0s config --- k0s/.gitignore | 2 ++ k0s/README.md | 17 +++++++++++++++++ k0s/k0sctl.yaml | 23 +++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 k0s/.gitignore create mode 100644 k0s/README.md create mode 100644 k0s/k0sctl.yaml 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