-
Notifications
You must be signed in to change notification settings - Fork 1
/
k0sctl.yaml
50 lines (50 loc) · 1.26 KB
/
k0sctl.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: k0sctl.k0sproject.io/v1beta1
kind: Cluster
metadata:
name: k0s-cluster
spec:
hosts:
- ssh:
address: 192.168.86.103
user: beast
port: 22
keyPath: ~/.ssh/id_rsa
role: controller+worker
noTaints: true
- ssh:
address: 192.168.86.104
user: beast
port: 22
keyPath: ~/.ssh/id_rsa
role: worker
- ssh:
address: 192.168.86.105
user: beast
port: 22
keyPath: ~/.ssh/id_rsa
role: worker
# install Helm charts in k0s https://docs.k0sproject.io/v1.23.6+k0s.2/helm-charts/
k0s:
config:
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
metadata:
name: k0s-cluster
spec:
network:
provider: calico
extensions:
storage:
type: openebs_local_storage
helm:
repositories:
- name: openebs-cstor
url: https://openebs.github.io/cstor-operators
charts:
- name: openebs-cstor
chartname: openebs-cstor/cstor
version: "3.1.0"
values: |
csiNode:
kubeletDir: /var/lib/k0s/kubelet/
namespace: openebs