artifacts/packer/Cloud-Neutra-VMs/scripts/flavors/k3s.sh
Haitao Pan 14748088a1 feat: add Cloud-Neutra Golden Image pipeline and Packer template suite
- Added docs for environment setup and template usage
- Added Ubuntu 22.04 AWS builder template and edition templates
- Added flavor scripts: container, k3s, k3s-gpu, sealos, sealos-gpu
- Added base OS scripts (01_os_base.sh, 02_hardening.sh) and cleanup pipeline
- Added GitHub Actions workflow for AMI build, QA, and multi-region distribution
2025-11-21 15:26:43 +08:00

15 lines
333 B
Bash

#!/usr/bin/env bash
set -euo pipefail
echo "[Cloud-Neutra] Installing K3s (skip start)"
curl -sfL https://get.k3s.io -o install_k3s.sh
chmod +x install_k3s.sh
# Skip start (important for AMI)
sudo INSTALL_K3S_SKIP_START=true ./install_k3s.sh
sudo systemctl disable k3s || true
echo "[Cloud-Neutra] K3s installed (not started)."