Dashboard web ligero para clusters de Kubernetes (binario unico, distroless).
7.5K
🌐 Language / Idioma: 🇬🇧 English · 🇪🇸 Español
Modern, fast and lightweight web dashboard for Kubernetes clusters.
An alternative to the official Kubernetes Dashboard with an improved interface, real-time
metrics and a single binary with no external dependencies, packaged in a tiny Docker image
(~15 MB) based on distroless, with no shell and running as a non-root user.
fermdez96/k8dashlatest and every semantic version (e.g. 1.36.17).linux/amd64 and linux/arm64 (docker pull picks the host's).The application's source code is not public: on GitHub and in this image only the precompiled binary is distributed, together with the documentation and example manifests.
The entire installation, configuration and usage guide is published as a browsable website, in English and Spanish:
| 🌐 Language / Idioma | Documentation / Documentación |
|---|---|
| 🇬🇧 English | https://k8dash.fermdez.net/docs/en/ |
| 🇪🇸 Español | https://k8dash.fermdez.net/docs/es/ |
Highlights / Páginas destacadas:
| Topic / Tema | 🇬🇧 English | 🇪🇸 Español |
|---|---|---|
| Quick start / Inicio rápido | Quick start | Inicio rápido |
| Docker | Install with Docker | Instalación con Docker |
| Kubernetes | Deploy on Kubernetes | Despliegue en Kubernetes |
| Environment variables / Variables de entorno | Configuration | Configuración |
| Authentication / Autenticación | Authentication | Autenticación |
| Security / Seguridad | Security | Seguridad |
| Ingress and TLS | Ingress exposure | Exposición con Ingress |
| Production / Producción | Production deployment | Despliegue en producción |
| Troubleshooting / Problemas | Troubleshooting | Solución de problemas |
| FAQ | FAQ | Preguntas frecuentes |
docker pull fermdez96/k8dash:latest
docker run --rm -p 8080:8080 \
-v ${HOME}/.kube/config:/kube/config:ro \
-e KUBECONFIG=/kube/config \
fermdez96/k8dash:latest
Open your browser at http://localhost:8080.
On Linux you may need
--network hostif your API server is reachable via127.0.0.1(e.g. withkind/minikube).
docker pull fermdez96/k8dash:1.36.17
| Variable | Default | Description |
|---|---|---|
KUBECONFIG | — | Path(s) to the kubeconfig. Supports several separated by : (Linux). |
K8DASH_ADDR | :8080 | Listen address and port of the HTTP server. |
K8DASH_NAMESPACE | (auto-detected) | Namespace where the authentication Secret k8dash-auth is persisted. In-cluster it is detected from the ServiceAccount. |
K8DASH_AUTH_DISABLED | false | If true/1, disables authentication. Recovery mechanism if the admin gets locked out. |
K8DASH_CORS_ORIGINS | * | Allowed CORS origins. Accepts * or a comma-separated list. Restrict it to your domain in production. |
K8DASH_CORS_METHODS | GET, POST, PUT, DELETE, OPTIONS | Allowed CORS methods. |
K8DASH_CORS_HEADERS | Content-Type, Authorization | Allowed CORS headers. |
K8DASH_TRUSTED_PROXIES | (loopback + private ranges) | Networks whose X-Forwarded-* headers are trusted. Accepts all, none or a CIDR/IP list. |
K8DASH_CSRF | auto | Anti-CSRF protection: auto (browsers only), on (always) or off. |
K8DASH_SESSION_TTL | 12h | Session lifetime with automatic renewal. 0 = never expires. |
K8DASH_SETUP_TOKEN | — | If set, the initial authentication setup requires this token. |
K8DASH_CSP · K8DASH_FRAME_OPTIONS · K8DASH_HSTS | (secure) | Security headers (CSP, anti-clickjacking, HSTS). Use off to disable each one. |
Full security documentation in k8dash.fermdez.net/docs/en/security (ES: seguridad) and all variables in configuration (ES: configuración).
The container exposes port 8080.
The GitHub repository includes a ready-to-use example manifest
(deploy/kubernetes.yaml) with a Namespace, ServiceAccount, least-privilege RBAC,
a hardened Deployment (rootless, read-only FS, no capabilities), a Service and an
example Ingress:
kubectl apply -f https://raw.githubusercontent.com/FerMdez/K8Dash/main/deploy/kubernetes.yaml
kubectl -n k8dash port-forward svc/k8dash 8080:80
Inside the cluster, K8Dash automatically uses the mounted ServiceAccount: it does not
need KUBECONFIG.
metrics-server) and real-time trend
charts.kubectl exec) over WebSocket.📘 Detailed guide: Security · Authentication (ES: Seguridad · Autenticación).
🚀 Before exposing it in production, follow the complete checklist: Production deployment (ES: Despliegue en producción).
K8Dash is a free project that I develop and maintain in my spare time. If you find it useful and would like to help it keep evolving, you can do so through GitHub Sponsors:
Every contribution, however small, is greatly appreciated!
CC BY-NC-SA · Fernando Méndez Torrubiano (https://fermdez.net/)
Dashboard web moderno, rápido y ligero para clusters de Kubernetes.
Una alternativa al Kubernetes Dashboard oficial con una interfaz mejorada, métricas en
tiempo real y un único binario sin dependencias externas, empaquetado en una imagen Docker
minúscula (~15 MB) basada en distroless, sin shell y ejecutada como usuario no-root.
fermdez96/k8dashlatest y cada versión semántica (p. ej. 1.36.17).linux/amd64 y linux/arm64 (docker pull elige la del host).El código fuente de la aplicación no es público: en GitHub y en esta imagen solo se distribuye el binario ya compilado junto con la documentación y los manifiestos de ejemplo.
Toda la guía de instalación, configuración y uso está publicada como sitio web navegable, en español e inglés:
| 🌐 Idioma / Language | Documentación / Documentation |
|---|---|
| 🇪🇸 Español | https://k8dash.fermdez.net/docs/es/ |
| 🇬🇧 English | https://k8dash.fermdez.net/docs/en/ |
Páginas destacadas / Highlights:
| Tema / Topic | 🇪🇸 Español | 🇬🇧 English |
|---|---|---|
| Inicio rápido / Quick start | Inicio rápido | Quick start |
| Docker | Instalación con Docker | Install with Docker |
| Kubernetes | Despliegue en Kubernetes | Deploy on Kubernetes |
| Variables de entorno / Environment variables | Configuración | Configuration |
| Autenticación / Authentication | Autenticación | Authentication |
| Seguridad / Security | Seguridad | Security |
| Ingress y TLS | Exposición con Ingress | Ingress exposure |
| Producción / Production | Despliegue en producción | Production deployment |
| Problemas / Troubleshooting | Solución de problemas | Troubleshooting |
| FAQ | Preguntas frecuentes | FAQ |
docker pull fermdez96/k8dash:latest
docker run --rm -p 8080:8080 \
-v ${HOME}/.kube/config:/kube/config:ro \
-e KUBECONFIG=/kube/config \
fermdez96/k8dash:latest
Abre el navegador en http://localhost:8080.
En Linux puede ser necesario
--network hostsi tu API server es accesible vía127.0.0.1(p. ej. conkind/minikube).
docker pull fermdez96/k8dash:1.36.17
| Variable | Por defecto | Descripción |
|---|---|---|
KUBECONFIG | — | Ruta(s) al kubeconfig. Admite varias separadas por : (Linux). |
K8DASH_ADDR | :8080 | Dirección y puerto de escucha del servidor HTTP. |
K8DASH_NAMESPACE | (autodetectado) | Namespace donde persistir el Secret k8dash-auth de la autenticación. In-cluster se detecta del ServiceAccount. |
K8DASH_AUTH_DISABLED | false | Si es true/1, desactiva la autenticación. Mecanismo de recuperación si el admin queda bloqueado. |
K8DASH_CORS_ORIGINS | * | Orígenes permitidos por CORS. Acepta * o una lista separada por comas. Restríngelo a tu dominio en producción. |
K8DASH_CORS_METHODS | GET, POST, PUT, DELETE, OPTIONS | Métodos permitidos por CORS. |
K8DASH_CORS_HEADERS | Content-Type, Authorization | Cabeceras permitidas por CORS. |
K8DASH_TRUSTED_PROXIES | (loopback + redes privadas) | Redes cuyas cabeceras X-Forwarded-* se aceptan. Admite all, none o una lista de CIDR/IP. |
K8DASH_CSRF | auto | Protección anti-CSRF: auto (solo navegadores), on (siempre) u off. |
K8DASH_SESSION_TTL | 12h | Duración de la sesión con renovación automática. 0 = sin expiración. |
K8DASH_SETUP_TOKEN | — | Si se define, la primera configuración de la autenticación exige este token. |
K8DASH_CSP · K8DASH_FRAME_OPTIONS · K8DASH_HSTS | (seguros) | Cabeceras de seguridad (CSP, anti-clickjacking, HSTS). Usa off para desactivar cada una. |
Documentación completa de seguridad en k8dash.fermdez.net/docs/es/seguridad (EN: security) y de todas las variables en configuración (EN: configuration).
El contenedor expone el puerto 8080.
El repositorio de GitHub incluye un manifiesto de ejemplo listo para usar
(deploy/kubernetes.yaml) con Namespace, ServiceAccount, RBAC de mínimo privilegio,
un Deployment endurecido (rootless, FS de solo lectura, sin capabilities), Service e
Ingress de ejemplo:
kubectl apply -f https://raw.githubusercontent.com/FerMdez/K8Dash/main/deploy/kubernetes.yaml
kubectl -n k8dash port-forward svc/k8dash 8080:80
Dentro del cluster, K8Dash usa automáticamente el ServiceAccount montado: no necesita
KUBECONFIG.
metrics-server) y gráficas de
tendencias en tiempo real.kubectl exec) vía WebSocket.📘 Guía detallada: Seguridad · Autenticación (EN: Security · Authentication).
🚀 Antes de exponerlo en producción, sigue la lista de comprobación completa: Despliegue en producción (EN: Production deployment).
K8Dash es un proyecto gratuito que desarrollo y mantengo en mi tiempo libre. Si te resulta útil y quieres ayudar a que siga evolucionando, puedes hacerlo mediante GitHub Sponsors:
¡Cualquier aportación, por pequeña que sea, es enormemente apreciada!
CC BY-NC-SA · Fernando Méndez Torrubiano (https://fermdez.net/)
docker pull fermdez96/k8dash:latest