add infrastructure manifests

This commit is contained in:
stackops
2026-04-09 13:26:46 +03:00
parent f896fa3d3e
commit 7fe1376fe6
10 changed files with 358 additions and 0 deletions

16
01-k3s/install.sh Normal file
View 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"