Last active
July 20, 2021 20:34
-
-
Save jcvenegas/d147b803263f83cec291828dae3f9533 to your computer and use it in GitHub Desktop.
install_kata_for_ctr.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Note containerd should be installed and running. | |
# Install kata | |
curl -o kata.tar.xz -L https://github.com/kata-containers/kata-containers/releases/download/2.2.0-alpha1/kata-static-2.2.0-alpha1-x86_64.tar.xz | |
sudo tar -xf kata.tar.xz -C / | |
# Add kata binaries to path to allow containerd find them | |
for b in /opt/kata/bin/* ; do | |
ln -sf $b /usr/local/bin/$(basename $b) | |
done | |
# Configure containerd | |
sudo tee -a /etc/containerd/config.toml <<EOT | |
[plugins] | |
[plugins."io.containerd.grpc.v1.cri"] | |
[plugins."io.containerd.grpc.v1.cri".containerd] | |
default_runtime_name = "kata" | |
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes] | |
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.kata] | |
runtime_type = "io.containerd.kata.v2" | |
EOT | |
sudo systemctl restart containerd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment