Skip to content

Commit

Permalink
Merge pull request #105 from NVIDIA/crio-install
Browse files Browse the repository at this point in the history
install cri-o as per the official documentation
  • Loading branch information
tariq1890 authored Jul 10, 2024
2 parents 8b6d255 + b72df9e commit 5ee2a24
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pkg/provisioner/templates/crio.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5ee2a24

Please sign in to comment.