melodic-hamburger-23329
08/08/2022, 12:39 PMfreezing-airplane-30363
08/08/2022, 12:51 PMmelodic-hamburger-23329
08/08/2022, 12:52 PMfreezing-airplane-30363
08/08/2022, 12:53 PMmelodic-hamburger-23329
08/08/2022, 12:55 PMctr plugins ls
doesn’t show it)freezing-airplane-30363
08/08/2022, 12:59 PMenv:
ADDITIONAL_ARGS: --snapshotter=stargz
k3s server
command but not sure what else it should do, here is some docu https://rancher.com/docs/k3s/latest/en/advanced/#enabling-lazy-pulling-of-estargz-experimentalmelodic-hamburger-23329
08/08/2022, 1:15 PMfreezing-airplane-30363
08/08/2022, 1:16 PMmelodic-hamburger-23329
08/09/2022, 2:17 AMfreezing-airplane-30363
08/09/2022, 8:15 AMoverride.yaml
and it is persistent, but the config is probably not correct/complete, anyway it might be usefull for you.
containerd:
system: true # official provisioning system script will be triggered just once on initial run so cusom config.toml will be used
provision:
- mode: system
script: |
#!/bin/sh
apk update
apk add mkcert --force-broken-world --repository <https://dl-cdn.alpinelinux.org/alpine/edge/testing>
apk add libc6-compat
wget <https://github.com/containerd/stargz-snapshotter/releases/download/v0.12.0/stargz-snapshotter-v0.12.0-linux-amd64.tar.gz>
tar xf stargz-snapshotter-v0.12.0-linux-amd64.tar.gz
./containerd-stargz-grpc &
- mode: system
script: |
#!/bin/sh
cat <<'EOF' >> /etc/containerd/config.toml
version = 2
# Plug stargz snapshotter into containerd
# Containerd recognizes stargz snapshotter through specified socket address.
# The specified address below is the default which stargz snapshotter listen to.
[proxy_plugins]
[proxy_plugins.stargz]
type = "snapshot"
address = "/run/containerd-stargz-grpc/containerd-stargz-grpc.sock"
# Use stargz snapshotter through CRI
[plugins."io.containerd.grpc.v1.cri".containerd]
snapshotter = "stargz"
disable_snapshot_annotations = false
EOF
apk add libc6-compat
makes the upstream stargz binary run under limavm and containerd.system: true
makes the changes "permanent".melodic-hamburger-23329
08/09/2022, 8:18 AMfreezing-airplane-30363
08/09/2022, 8:19 AMmelodic-hamburger-23329
08/09/2022, 8:57 AMcontainerd:
system
seems to require systemd. It seems there are quite many things that need changing in order to get this to work. I’ll take a look later if I can get this approach work by using Ubuntu image containing systemd (alpine doesn’t seem to support systemd out of the box..?).freezing-airplane-30363
08/09/2022, 9:09 AMmelodic-hamburger-23329
08/09/2022, 9:10 AMfreezing-airplane-30363
08/09/2022, 9:11 AMmelodic-hamburger-23329
08/09/2022, 9:11 AM/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> shell --workdir=. 0 sudo /sbin/rc-service --ifstarted k3s stop
Apparently RD tries to install k3s using openrc even though the OS is systemd-basedfreezing-airplane-30363
08/09/2022, 9:12 AMcontainerd.system
is about running provisioning scripts for containerd - it has nothing to do with systemdmelodic-hamburger-23329
08/09/2022, 9:12 AMfreezing-airplane-30363
08/09/2022, 9:14 AMmelodic-hamburger-23329
08/09/2022, 9:22 AMfreezing-airplane-30363
08/09/2022, 9:26 AMmelodic-hamburger-23329
08/10/2022, 3:49 AMcontainerd.system: true
seems to require systemd:
`time="2022-08-10T12:46:07+09:00" level=fatal msg="degraded, status={Running:true Degraded:true Exiting:false Errors:[1 error occurred:\\n\\t* failed to satisfy the optional requirement 1 of 2 \\"systemd must be available\\": systemd is required to run containerd, but does not seem to be available.\\nMake sure that you use an image that supports systemd. If you do not want to run\\ncontainerd, please make sure that both 'container.system' and 'containerd.user'\\nare set to 'false' in the config file.\\n; skipping further checks: stdout=\\"\\", stderr=\\"+ command -v systemctl\\\\n+ echo 'systemd is not available on this OS'\\\\nsystemd is not available on this OS\\\\n+ exit 1\\\\n\\": failed to execute script \\"systemd must be available\\": stdout=\\"\\", stderr=\\"+ command -v systemctl\\\\n+ echo 'systemd is not available on this OS'\\\\nsystemd is not available on this OS\\\\n+ exit 1\\\\n\\": exit status 1\\n\\n] SSHLocalPort:59256}"\n`,
code: 1,
command: [
'/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>',
'start',
'--tty=false',
'/Users/.../Library/Application Support/rancher-desktop/lima/_config/0.yaml'
]
}
freezing-airplane-30363
08/10/2022, 8:13 AM