Add install steps for k3s

This commit is contained in:
Tanguy Herbron 2022-02-04 00:19:45 +01:00
parent 960c02f914
commit e400549073

22
k3s_install_tmp Normal file
View File

@ -0,0 +1,22 @@
# MASTER
## Installation
apt install sudo curl
curl -sfL https://get.k3s.io | sh -
sudo cat /var/lib/rander/k3s/server/node-token
## Setup
GITHUB_URL=https://github.com/kubernetes/dashboard/releases
VERSION_KUBE_DASHBOARD=$(curl -w '%{url_effective}' -I -L -s -S ${GITHUB_URL}/latest -o /dev/null | sed -e 's|.*/||')
sudo k3s kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/${VERSION_KUBE_DASHBOARD}/aio/deploy/recommended.yaml
sudo k3s kubectl create -f dashboard.admin-user.yml -f dashboard.admin-user-role.yml
sudo k3s kubectl -n kubernetes-dashboard secret admin-user-token| grep '^token'
sudo k3s kubectl proxy
# WORKER
## Installation
curl -sfL https://get.k3s.io | K3S_URL=https://<IP>:6443 K3S_TOKEN=<token> sh -