Turborepo + pnpm monorepo for k3s homelab cluster on Intel NUCs. - Apps: Next.js web frontend, Express API (TypeScript, Dockerfiles, k8s manifests) - Packages: shared UI, ESLint config, TypeScript config, Drizzle DB schemas - Infra/Ansible: bare-metal provisioning with roles for common, k3s-server, k3s-agent, hardening - Infra/Kubernetes: ArgoCD GitOps (app-of-apps + ApplicationSets), platform components (cert-manager, Traefik, CloudNativePG, Valkey, Longhorn, Sealed Secrets), namespaces - Observability: kube-prometheus-stack, Loki, Promtail as ArgoCD Applications - CI/CD: GitHub Actions for PR builds, preview deploys, production deploys - DX: Taskfile, utility scripts, copier templates, Ubiquiti network docs
19 lines
656 B
Bash
Executable File
19 lines
656 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "Available services to port-forward:"
|
|
echo " 1) Grafana → localhost:3001"
|
|
echo " 2) ArgoCD → localhost:8080"
|
|
echo " 3) PostgreSQL → localhost:5432"
|
|
echo " 4) Valkey → localhost:6379"
|
|
echo ""
|
|
read -rp "Select service (1-4): " choice
|
|
|
|
case $choice in
|
|
1) kubectl port-forward -n observability svc/kube-prometheus-stack-grafana 3001:80 ;;
|
|
2) kubectl port-forward -n argocd svc/argocd-server 8080:443 ;;
|
|
3) kubectl port-forward -n platform svc/homelab-pg-rw 5432:5432 ;;
|
|
4) kubectl port-forward -n platform svc/valkey 6379:6379 ;;
|
|
*) echo "Invalid choice"; exit 1 ;;
|
|
esac
|