From b72df9e88861f9b3436dd0c42f7692ebb1ad729c Mon Sep 17 00:00:00 2001 From: Tariq Ibrahim Date: Wed, 10 Jul 2024 09:19:10 -0700 Subject: [PATCH] install cri-o as per the official documentation Signed-off-by: Tariq Ibrahim --- pkg/provisioner/templates/crio.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkg/provisioner/templates/crio.go b/pkg/provisioner/templates/crio.go index 3539eb6d..baf57f23 100644 --- a/pkg/provisioner/templates/crio.go +++ b/pkg/provisioner/templates/crio.go @@ -28,19 +28,16 @@ const criOTemplate = ` : ${CRIO_VERSION:={{.Version}} # Add Cri-o repo -echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list -echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$RUNTIME_VERSION/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$VERSION.list -curl -L https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:$RUNTIME_VERSION/$OS/Release.key | apt-key add - -curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/Release.key | apt-key add - +curl -fsSL https://pkgs.k8s.io/addons:/cri-o:/stable:/$CRIO_VERSION/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/cri-o-apt-keyring.gpg +echo "deb [signed-by=/etc/apt/keyrings/cri-o-apt-keyring.gpg] https://pkgs.k8s.io/addons:/cri-o:/stable:/$CRIO_VERSION/deb/ /" | tee /etc/apt/sources.list.d/cri-o.list # Install CRI-O apt update -apt install cri-o={{.CRIOVersion}} cri-o-runc +apt install -y cri-o # Start and enable Service systemctl daemon-reload -systemctl restart crio -systemctl enable crio +systemctl start crio.service ` type CriO struct {