-
Notifications
You must be signed in to change notification settings - Fork 3
/
k3s.yml
133 lines (131 loc) · 3.61 KB
/
k3s.yml
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
kernel:
image: linuxkit/kernel:5.6.11
cmdline: "console=tty0 page_poison=1"
init:
- linuxkit/init:v0.8
- linuxkit/runc:v0.8
- linuxkit/containerd:v0.8
- linuxkit/ca-certificates:v0.8
onboot:
- name: metadata
image: linuxkit/metadata:v0.8
- name: hostname
image: busybox:latest
command: ["hostname", "-F", "/etc/hostname"]
binds:
- /run/config/hostname/hostname:/etc/hostname
net: host
pid: host
rootfsPropagation: shared
capabilities:
- CAP_SYS_ADMIN
- name: sysctl
image: linuxkit/sysctl:v0.8
- name: sysfs
image: linuxkit/sysfs:v0.8
- name: format
image: linuxkit/format:v0.8
- name: mount
image: linuxkit/mount:v0.8
command: ["/usr/bin/mountie", "/var/lib/rancher"]
- name: move-logs
image: busybox:latest
binds:
- /var:/host_var
command: ["/bin/sh", "-c", "mv -v /host_var/log /host_var/lib && ln -vs /var/lib/log /host_var/log"]
- name: mkdir
image: busybox:latest
binds:
- /var/lib/rancher:/host_var_lib_rancher
command: ["/bin/sh", "-c", "mkdir -p /host_var_lib_rancher/k3s /host_var_lib_rancher/etc"]
- name: dhcpcd
image: linuxkit/dhcpcd:v0.8
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: rngd
image: linuxkit/rngd:v0.8
cgroupsPath: systemreserved/rngd
- name: acpid
image: linuxkit/acpid:v0.8
cgroupsPath: systemreserved/acpid
- name: ntpd
image: linuxkit/openntpd:v0.8
cgroupsPath: systemreserved/ntpd
- name: host-timesync-daemon
image: linuxkit/host-timesync-daemon:v0.8
cgroupsPath: systemreserved/host-timesync-daemon
- name: k3s
image: rancher/k3s:v1.19.5-k3s1
capabilities:
- all
net: host
pid: host
command:
- sh
- /bin/rancher/k3s-helper
mounts:
- type: bind
source: /sys/fs/cgroup
destination: /sys/fs/cgroup
options: ["rw","rbind","rshared","nosuid","noexec","nodev","relatime"]
- type: bind
source: /sys/fs/bpf
destination: /sys/fs/bpf
options: ["rw","rbind","rshared","nosuid","noexec","nodev","relatime"]
runtime:
cgroups:
- kubepods
- podruntime
- systemreserved
binds:
- /dev:/dev
- /etc/os-release:/etc/os-release
- /etc/resolv.conf:/etc/resolv.conf
- /lib/modules:/lib/modules
- /run/config/rancher:/bin/rancher
- /var/lib/rancher/etc:/etc/rancher
- /var/lib/rancher/k3s:/var/lib/rancher
rootfsPropagation: shared
cgroupsPath: podruntime/k3s
- name: getty
image: linuxkit/getty:v0.8
env:
- INSECURE=true
binds.add:
- /boot:/boot
- /etc/motd:/etc/motd
- /var/lib/rancher/etc:/etc/rancher
- /var/lib/rancher/k3s:/var/lib/rancher
cgroupsPath: systemreserved/getty
- name: sshd
image: linuxkit/sshd:v0.8
binds.add:
- /boot:/boot
- /etc/motd:/etc/motd
- /run/config/ssh:/root/.ssh
- /var/lib/rancher/etc:/etc/rancher
- /var/lib/rancher/k3s:/var/lib/rancher
cgroupsPath: systemreserved/sshd
files:
- path: etc/linuxkit.yml
metadata: yaml
- path: etc/motd
contents: |
__ ___ _ _ _
| |_|_ |___| |_|_| |_
| '_|_ |_ -| '_| | _|
|_,_|___|___|_,_|_|_|
Built by: ulm0 <[email protected]>
Project on GitHub: https://github.com/ulm0/k3skit
mode: "0644"
- path: etc/os-release
contents: |
NAME="k3skit"
ID="k3skit"
PRETTY_NAME="k3skit"
HOME_URL="https://github.com/ulm0/k3skit"
BUG_REPORT_URL="https://github.com/ulm0/k3skit/issues"
trust:
org:
- linuxkit
- library