-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathk8s-control.bu
More file actions
66 lines (63 loc) · 1.77 KB
/
Copy pathk8s-control.bu
File metadata and controls
66 lines (63 loc) · 1.77 KB
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
# k8s.bu
variant: fcos
version: 1.5.0
ignition:
config:
merge:
- local: ./k8s-base.ign
storage:
files:
- path: "/etc/node-type"
mode: 420
contents:
inline: control
- path: "/etc/k8s-config.yaml"
mode: 420
contents:
local: overrides/control/k8s-config-control.yaml
- path: "/usr/local/bin/setup-k8s-init.sh"
mode: 0755
contents:
local: overrides/control/setup-k8s-init.sh
- path: "/usr/local/bin/join_cluster.sh"
mode: 0755
contents:
local: overrides/control/join_cluster.sh
- path: "/usr/local/bin/setup-k8s-ph3.sh"
mode: 0755
contents:
local: overrides/bootstrap-control/setup-k8s-ph3.sh
- path: "/usr/local/bin/control-plane-utils"
mode: 0755
contents:
local: overrides/bootstrap-control/control-plane-utils
- path: "/usr/local/bin/generate_join.sh"
mode: 0755
contents:
local: overrides/bootstrap-control/generate_join.sh
- path: "/usr/local/bin/auto-join.sh"
mode: 0755
contents:
local: overrides/control-worker/auto-join.sh
- path: "/usr/local/bin/check-advertise-address.sh"
mode: 0755
contents:
local: overrides/bootstrap-control/check-advertise-address.sh
systemd:
units:
- name: fck8s-auto-join.service
enabled: true
contents: |
[Unit]
Description=K4All Auto Join Cluster
Requires=network-online.target
After=network-online.target fck8s-k8s-setup-ph3.service
StartLimitIntervalSec=0
[Service]
Type=oneshot
ExecStart=/usr/local/bin/auto-join.sh
RemainAfterExit=yes
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target