Skip to content

Instantly share code, notes, and snippets.

@kudaliar032
Last active September 28, 2021 04:33
Show Gist options
  • Save kudaliar032/8f1e2fc6b07c22b948e836c2f2db166d to your computer and use it in GitHub Desktop.
Save kudaliar032/8f1e2fc6b07c22b948e836c2f2db166d to your computer and use it in GitHub Desktop.
final k0sctl.yaml for cluster
apiVersion: k0sctl.k0sproject.io/v1beta1
kind: Cluster
metadata:
name: k0s-cluster
spec:
hosts:
- ssh:
address: 11.11.11.11
user: ubuntu
port: 22
keyPath: /Users/kudaliar/.ssh/id_rsa
role: controller
- ssh:
address: 22.22.22.22
user: ubuntu
port: 22
keyPath: /Users/kudaliar/.ssh/id_rsa
role: controller
- ssh:
address: 33.33.33.33
user: ubuntu
port: 22
keyPath: /Users/kudaliar/.ssh/id_rsa
role: controller
- ssh:
address: 44.44.44.44
user: ubuntu
port: 22
keyPath: /Users/kudaliar/.ssh/id_rsa
role: worker
- ssh:
address: 55.55.55.55
user: ubuntu
port: 22
keyPath: /Users/kudaliar/.ssh/id_rsa
role: worker
- ssh:
address: 66.66.66.66
user: ubuntu
port: 22
keyPath: /Users/kudaliar/.ssh/id_rsa
role: worker
k0s:
version: 1.22.2+k0s.0
config:
spec:
api:
externalAddress: 77.77.77.77
sans:
- 77.77.77.77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment