From 68580b8818767cf22dbc336a283068e0a5885173 Mon Sep 17 00:00:00 2001 From: Tyler Romero Date: Fri, 3 Nov 2023 13:20:13 -0700 Subject: [PATCH] change to k3s install --- deploy/bin/install-k3s.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/deploy/bin/install-k3s.sh b/deploy/bin/install-k3s.sh index 79a5b311..416a4716 100755 --- a/deploy/bin/install-k3s.sh +++ b/deploy/bin/install-k3s.sh @@ -7,6 +7,14 @@ K="k3s kubectl" # Update system sudo apt update && sudo apt upgrade -y +# Check if policycoreutils is installed, install it if not +if dpkg -l policycoreutils | grep -qw ii; then + echo "policycoreutils is already installed." +else + echo "Installing policycoreutils..." + sudo apt-get install -y policycoreutils +fi + # Install k3s echo "Installing k3s..." curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh - @@ -35,5 +43,5 @@ else fi # Set up kubeconfig for the current user -mkdir -p ~/.kube -cp /etc/rancher/k3s/k3s.yaml ~/.kube/config \ No newline at end of file +# mkdir -p ~/.kube +# cp /etc/rancher/k3s/k3s.yaml ~/.kube/config \ No newline at end of file