add infrastructure manifests
This commit is contained in:
16
01-k3s/install.sh
Normal file
16
01-k3s/install.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
VPS="root@82.114.226.118"
|
||||
|
||||
echo "Installing prerequisites..."
|
||||
ssh $VPS 'apt-get update -qq && apt-get install -y -qq curl'
|
||||
|
||||
echo "Installing k3s (traefik disabled)..."
|
||||
ssh $VPS 'curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable=traefik" sh -'
|
||||
|
||||
echo "Copying kubeconfig..."
|
||||
mkdir -p ~/.kube
|
||||
ssh $VPS 'cat /etc/rancher/k3s/k3s.yaml' | sed 's/127.0.0.1/82.114.226.118/' > ~/.kube/config-nodeup
|
||||
|
||||
echo "Done. Use: export KUBECONFIG=~/.kube/config-nodeup"
|
||||
Reference in New Issue
Block a user