From e400549073d38e6347bc406c5ffe17564f6d2db0 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Fri, 4 Feb 2022 00:19:45 +0100 Subject: [PATCH] Add install steps for k3s --- k3s_install_tmp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 k3s_install_tmp diff --git a/k3s_install_tmp b/k3s_install_tmp new file mode 100644 index 0000000..bcef63a --- /dev/null +++ b/k3s_install_tmp @@ -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://:6443 K3S_TOKEN= sh -