Instalación de k3s¶
Guía para desplegar un clúster k3s sobre una VM en Proxmox (Ubuntu 22.04).
1. Configuración base¶
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl vim htop git ufw
sudo ufw allow ssh
sudo ufw allow 6443/tcp
sudo ufw allow 80,443/tcp
sudo ufw enable
2. Instalación¶
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644
sudo kubectl get nodes
Verifica acceso:
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
kubectl cluster-info
3. Instalación de Helm¶
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
kubectl create namespace monitoring
kubectl create namespace argocd
kubectl create namespace xpify
Si obtienes “Kubernetes cluster unreachable”, exporta
KUBECONFIGcorrectamente.