-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
147 lines (137 loc) · 4.27 KB
/
config.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
storage:
directories:
- path: /opt/bin/sysbox
filesystem: root
mode: 0755
files:
- path: /opt/bin/sysbox/sysbox-runc
filesystem: root
mode: 0755
contents:
remote:
url: https://github.com/nestybox/sysbox-flatcar-preview/releases/download/test1/sysbox-runc
- path: /opt/bin/sysbox/sysbox-fs
filesystem: root
mode: 0755
contents:
remote:
url: https://github.com/nestybox/sysbox-flatcar-preview/releases/download/test1/sysbox-fs
- path: /opt/bin/sysbox/sysbox-mgr
filesystem: root
mode: 0755
contents:
remote:
url: https://github.com/nestybox/sysbox-flatcar-preview/releases/download/test1/sysbox-mgr
- path: /opt/bin/sysbox/fusermount
filesystem: root
mode: 0755
contents:
remote:
url: https://github.com/nestybox/sysbox-flatcar-preview/releases/download/test1/fusermount
- path: /opt/bin/sysbox/shiftfs.ko
filesystem: root
mode: 0755
contents:
remote:
url: https://github.com/nestybox/sysbox-flatcar-preview/releases/download/test1/shiftfs.ko
- path: /etc/modules-load.d/50-sysbox-mod.conf
filesystem: root
mode: 0644
contents:
inline: |
configfs
- path: /etc/sysctl.d/99-sysbox-sysctl.conf
filesystem: root
mode: 0644
contents:
inline: |
fs.inotify.max_queued_events = 1048576
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 1048576
kernel.keys.maxkeys = 20000
kernel.keys.maxbytes = 400000
- path: /opt/bin/sysbox/docker-cfg
filesystem: root
mode: 0755
contents:
remote:
url: https://raw.githubusercontent.com/nestybox/sysbox-flatcar-preview/master/scr/docker-cfg
systemd:
units:
- name: shiftfs.service
enabled: true
contents: |
[Unit]
Description=Load shiftfs module into kernel
Before=sysbox.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c "insmod /opt/bin/sysbox/shiftfs.ko || true"
[Install]
WantedBy=multi-user.target
- name: sysbox.service
enabled: true
contents: |
[Unit]
Description=Sysbox container runtime
Documentation=https://github.com/nestybox/sysbox
BindsTo=sysbox-mgr.service sysbox-fs.service
After=sysbox-mgr.service sysbox-fs.service
Before=docker.service containerd.service
[Service]
Type=exec
ExecStart=/bin/sh -c "/opt/bin/sysbox/sysbox-runc --version && /opt/bin/sysbox/sysbox-mgr --version && /opt/bin/sysbox/sysbox-fs --version && /bin/sleep infinity"
[Install]
WantedBy=multi-user.target
- name: sysbox-fs.service
enabled: true
contents: |
[Unit]
Description=sysbox-fs (part of the Sysbox container runtime)
PartOf=sysbox.service
After=sysbox-mgr.service
[Service]
Type=simple
Type=notify
Environment=PATH=/opt/bin/sysbox/:$PATH
ExecStart=/opt/bin/sysbox/sysbox-fs
TimeoutStartSec=10
TimeoutStopSec=10
StartLimitInterval=0
NotifyAccess=main
OOMScoreAdjust=-500
LimitNOFILE=infinity
LimitNPROC=infinity
[Install]
WantedBy=sysbox.service
- name: sysbox-mgr.service
enabled: true
contents: |
[Unit]
Description=sysbox-mgr (part of the Sysbox container runtime)
PartOf=sysbox.service
[Service]
Type=simple
Type=notify
ExecStartPre=/bin/sh -c "useradd sysbox > /dev/null 2>&1 || true"
ExecStart=/opt/bin/sysbox/sysbox-mgr
TimeoutStartSec=45
TimeoutStopSec=90
StartLimitInterval=0
NotifyAccess=main
OOMScoreAdjust=-500
LimitNOFILE=infinity
LimitNPROC=infinity
[Install]
WantedBy=sysbox.service
- name: docker-sysbox-cfg.service
enabled: true
contents: |
[Unit]
Description=Docker config for Sysbox
After=docker.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c "/opt/bin/sysbox/docker-cfg -v --sysbox-runtime=enable"
[Install]
WantedBy=multi-user.target