cri-o

microK8sでは、cri-oは使えない模様。(2023/8/20現在)
minikubeはOK

以前、minikubeを動かいていた時の備忘録。

CRI(Container Runtime Interface)

いろいろあるみたいだけど、Dockerにしがらみがなければ、CRI-Oに挑戦で良さげ。

CRI-O

前提条件

OS: Ubuntu 22.04

インストール

# VERSION=1.24
# OS=xUbuntu_22.04
# echo "deb [signed-by=/usr/share/keyrings/libcontainers-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list

# echo "deb [signed-by=/usr/share/keyrings/libcontainers-crio-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$VERSION/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$VERSION.list

# mkdir -p /usr/share/keyrings
# curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/Release.key | gpg --dearmor -o /usr/share/keyrings/libcontainers-archive-keyring.gpg

# curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$VERSION/$OS/Release.key | gpg --dearmor -o /usr/share/keyrings/libcontainers-crio-archive-keyring.gpg

# apt-get update
# apt-get install cri-o cri-o-runc

再起動

タイトルとURLをコピーしました