-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.yaml
70 lines (70 loc) · 1.59 KB
/
test.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
checks:
- name: dns
dns:
value: api
- name: cluster
systemd:
unit: kubeadm-join.service
description: Joining Cluster
values:
- name: ssid
description: Wireless Network Name
- name: psk
description: Wireless Network Password
secret: true
- name: hostname
description: Hostname
- name: sshkey
description: SSH Key
- name: api
description: k8s API Server Endpoint
- name: ca_cert_hash
description: k8s CA Certificate Hash
- name: token
description: k8s Bootstrap Token
- name: registry
description: Unqualified Container Registry
actions:
- name: hostname
file:
path: etchostname
value: hostname
- name: wpa_supplicant-config
file:
path: etcwpa_supplicantwpa_supplicant-wlan0.conf
template: |
network={
ssid="{{.ssid}}"
psk="{{.psk}}"
}
- name: sshkey
file:
path: homeonboard.sshauthorized_keys
value: sshkey
- name: containers-registries
file:
path: etccontainersregistries.conf
template: |
unqualified-search-registries = ["{{.registry}}"]
- name: restart-crio
systemd:
unit: pipewire.service
command: restart
- name: kubeadm-config
file:
path: varlibkubeadmconfig.yaml
template: |
apiVersion: kubeadm.k8s.io/v1beta2
kind: JoinConfiguration
discovery:
bootstrapToken:
apiServerEndpoint: {{.api}}
token: {{.token}}
caCertHashes:
- {{.ca_cert_hash}}
nodeRegistration:
name: {{.hostname}}
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
cgroupDriver: systemd