Kubernetes examples
Copy-ready Kubernetes files for monitoring, databases, web servers and apps, with sensible defaults already in place.
Open the Kubernetes template generator →
| Monitoring | |
|---|---|
| Prometheus | Prometheus with RBAC, a persistent volume and scrape rules that pick up any pod or service annotated with prometheus.io/scrape. |
| Grafana | Grafana with a persistent volume, an admin password in a Secret and Prometheus already added as a data source. |
| Node Exporter | A DaemonSet that runs Prometheus Node Exporter on every node, including control-plane nodes, with a Service Prometheus discovers automatically. |
| Alertmanager | Prometheus Alertmanager with a starter routing config you can extend with Slack, email or PagerDuty receivers. |
| Loki | Grafana Loki in single-binary mode with filesystem storage, a good start for collecting logs in a small cluster. |
| Databases | |
| PostgreSQL | PostgreSQL as a StatefulSet with a persistent volume, credentials in a Secret, and readiness and liveness checks. |
| MySQL | MySQL as a StatefulSet with a persistent volume, root and app passwords in a Secret, and health checks. |
| MariaDB | MariaDB as a StatefulSet with a persistent volume, passwords in a Secret, and the image's built-in health check. |
| MongoDB | A single MongoDB instance as a StatefulSet with authentication enabled, a persistent volume and health checks. |
| Redis | Redis as a StatefulSet with a password, append-only persistence on a volume, and health checks. |
| Web servers | |
| Nginx web server | Nginx serving a static site, with a custom config in a ConfigMap, a Service and an Ingress with TLS from cert-manager. |
| Apache HTTP Server | Apache httpd serving a static site from a ConfigMap, with a Service and an Ingress with TLS from cert-manager. |
| Caddy reverse proxy | Caddy as an in-cluster reverse proxy in front of another Service, with its Caddyfile in a ConfigMap. |
| Apps and messaging | |
| RabbitMQ | RabbitMQ with the management UI, as a StatefulSet with a persistent volume and credentials in a Secret. |
| WordPress with MySQL | WordPress plus its own MySQL database, with persistent volumes for both, a Service and an Ingress with TLS. |