Steps for installing nerdctl 24/13024/1
authorsubhash kumar singh <subh.singh@samsung.com>
Wed, 26 Jun 2024 09:49:02 +0000 (09:49 +0000)
committersubhash kumar singh <subh.singh@samsung.com>
Wed, 26 Jun 2024 09:49:02 +0000 (09:49 +0000)
Added steps to install nerdctl.

Change-Id: I4b25ecd05435f66e24c456f7e1ed3c57156f7aec
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
tools/kubernetes/install_k8s.sh

index 15f25b1..076a488 100755 (executable)
@@ -69,4 +69,18 @@ sudo sed -i 's/apiVersion: policy\/v1beta1/apiVersion: policy\/v1/g' calico.yaml
 echo "Applying modified Calico configuration..."
 kubectl apply -f calico.yaml
 
-echo "Installation complete!"
+echo "Installation completed for kubernetes!"
+
+# install nerdctl
+NERDCTL_VERSION=1.7.6 # see https://github.com/containerd/nerdctl/releases for the latest release
+
+archType="amd64"
+if test "$(uname -m)" = "aarch64"
+then
+            archType="arm64"
+fi
+
+wget -q "https://github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/nerdctl-${NERDCTL_VERSION}-linux-${archType}.tar.gz" -O /tmp/nerdctl.tar.gz
+sudo tar Cxzvvf /usr/bin /tmp/nerdctl.tar.gz
+
+echo "Installation completed for nerdctl!"
\ No newline at end of file