Lightweight Go-based dashboard for Raspberry Pi cluster: Backend: - chi router with REST API - Embedded static file serving - JSON file-based state storage - Health checks and CORS support Frontend: - Responsive dark theme UI - Status view with nodes, alerts, ArgoCD apps - Pending actions with approve/reject - Action history and audit trail - Workflow listing and manual triggers Deployment: - Multi-stage Dockerfile (small Alpine image) - Kubernetes manifests with Pi 3 tolerations - Resource limits: 32-64Mi memory, 10-100m CPU - ArgoCD application manifest - Kustomize configuration API endpoints: - GET /api/status - Cluster status - GET/POST /api/pending - Action management - GET /api/history - Action audit trail - GET/POST /api/workflows - Workflow management 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
783 B
YAML
30 lines
783 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: k8s-agent-dashboard
|
|
namespace: k8s-agent
|
|
labels:
|
|
app.kubernetes.io/name: k8s-agent-dashboard
|
|
app.kubernetes.io/component: dashboard
|
|
annotations:
|
|
# Adjust annotations based on your ingress controller
|
|
# nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
spec:
|
|
ingressClassName: nginx # or traefik, etc.
|
|
rules:
|
|
- host: k8s-agent.local # Adjust to your domain
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: k8s-agent-dashboard
|
|
port:
|
|
name: http
|
|
# Uncomment for TLS
|
|
# tls:
|
|
# - hosts:
|
|
# - k8s-agent.local
|
|
# secretName: k8s-agent-dashboard-tls
|