Files
infra/01-k3s/install.sh
2026-04-09 13:26:46 +03:00

17 lines
498 B
Bash

#!/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"