main
Deploy to prod / terraform-plan (push) Successful in 32s
…
Dozzle on Kubernetes
Terraform configuration to deploy Dozzle (a real-time Docker log viewer) to a Kubernetes cluster.
Overview
This project provisions Dozzle in Kubernetes mode, allowing it to read logs from all pods cluster-wide via the Kubernetes API. It includes proper RBAC, TLS, and ingress configuration.
Architecture
User → Ingress (Traefik) → Service → Dozzle Pod → Kubernetes API → Pod Logs
↑
Service Account Auth
Components deployed:
- Namespace:
dozzle - Service Account:
dozzle-pod-viewerwithClusterRole/ClusterRoleBindingfor cluster-wide log access - Deployment:
amir20/dozzle:v10.6.6in Kubernetes mode - Service: Exposes port 80 → 8080
- Ingress: TLS-enabled via Let's Encrypt and Traefik
Quick Start
# Initialize Terraform
terraform init
# Plan and apply
terraform plan -out dozzle.plan
terraform apply dozzle.plan
Documentation
For detailed documentation, see AGENTS.md.
Prerequisites
- Valid
~/.kube/configpointing to the target cluster - AWS credentials (
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY) for the S3 backend (Cloudflare R2) - Traefik ingress controller installed
- cert-manager for TLS provisioning
- DNS record pointing
dozzle.darkroasted.vps-kinghost.netto the cluster ingress
License
See the project LICENSE file for details.
Languages
HCL
100%