Skip to content

Commit

Permalink
add k0s config
Browse files Browse the repository at this point in the history
  • Loading branch information
pokgak committed Sep 16, 2023
1 parent bda2b0d commit 6718f86
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions k0s/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
kubeconfig
.envrc
17 changes: 17 additions & 0 deletions k0s/README.md
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions k0s/k0sctl.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6718f86

Please sign in to comment.