Skip to content

Commit

Permalink
change to k3s install
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-romero committed Nov 3, 2023
1 parent 1f14d94 commit 68580b8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions deploy/bin/install-k3s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down Expand Up @@ -35,5 +43,5 @@ else
fi

# Set up kubeconfig for the current user
mkdir -p ~/.kube
cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
# mkdir -p ~/.kube
# cp /etc/rancher/k3s/k3s.yaml ~/.kube/config

0 comments on commit 68580b8

Please sign in to comment.