Skip to content

About

BunkerWeb Kubernetes helm charts.

Resources

Stars

13 stars

Watchers

4 watching

Forks

Repository files navigation

BunkerWeb

Helm chart for Kubernetes

Run the BunkerWeb web application firewall and reverse proxy on Kubernetes.
One release deploys the proxy, scheduler, controller, web UI and their database.

Chart version BunkerWeb version License Plumber CI/CD security score

Install · Deployment · Production · Examples · Day 2 · BunkerWeb docs · Support

Clients send HTTP and HTTPS traffic to BunkerWeb, which forwards filtered requests to your services

I want to Go to
Try it on a cluster Install
See how the parts connect How it fits together
Pick a workload kind or controller Choose your deployment
Harden a production install Production checklist
Start from a values file Examples index
Upgrade or remove a release Day 2

Install

Important

Read the BunkerWeb Kubernetes integration docs first. This chart packages that integration.

You need Kubernetes 1.21+ (1.23+ with bunkerweb.hpa.enabled), Helm 3 and a PersistentVolume provisioner. Gateway API support also needs the Gateway API CRDs.

helm repo add bunkerweb https://repo.bunkerweb.io/charts
helm repo update
helm install mybunkerweb bunkerweb/bunkerweb -n bunkerweb --create-namespace

Default values deploy BunkerWeb, the scheduler, the controller, the UI, MariaDB and Redis. Reach the UI with a port-forward and open http://localhost:7000:

kubectl port-forward svc/ui-mybunkerweb 7000:7000 -n bunkerweb

Publish an app by creating an Ingress with ingressClassName: bunkerweb. The chart creates that IngressClass, and the mybunkerweb-external service carries the traffic.

How it fits together

flowchart TB
  subgraph config["Configuration path"]
    direction TB
    k8s["Ingress and Gateway<br/>API resources"] -.-> ctrl["Controller"]
    ctrl --> db[("MariaDB")]
    ui["UI"] --> db
    db --> sched["Scheduler"]
  end
  subgraph traffic["Traffic path"]
    direction TB
    clients(["Clients"]) --> bw["BunkerWeb<br/>WAF + reverse proxy"]
    bw --> apps(["Your services"])
    bw <--> redis[("Redis")]
  end
  subgraph obs["Optional metrics"]
    direction TB
    prom["Prometheus"] --> graf["Grafana"]
  end
  sched -->|"pushes config"| bw
  prom -.->|"scrapes"| bw
  style bw stroke:#2eac68,stroke-width:3px
  style config fill:none,stroke:#0b5577
  style traffic fill:none,stroke:#2eac68
  style obs fill:none,stroke:#6ac1e0,stroke-dasharray:4 4
Loading

Dotted lines mark watched resources and optional metrics scraping. MariaDB and Redis can also run outside the chart.

Choose your deployment

BunkerWeb workload kind

flowchart TB
  q1{"Bind ports 80 and 443<br/>on every node?"} -->|"yes"| ds["DaemonSet<br/>hostPorts: true"]
  q1 -->|"no"| q2{"Need stable pod<br/>names or storage?"}
  q2 -->|"yes"| sts["StatefulSet"]
  q2 -->|"no"| dep["Deployment<br/>default"]
  style dep stroke:#2eac68,stroke-width:3px
Loading
Kind (bunkerweb.kind) Pick it when Settings that matter
Deployment (default) You scale behind a Service and want rolling updates replicas, hpa, pdb
DaemonSet One pod per node, bound to the node's ports 80 and 443 hostPorts, updateStrategy, minReadySeconds
StatefulSet You need stable pod names or storage. Rare for ingress. replicas

Note

The HPA targets a Deployment unless you set bunkerweb.hpa.targetKind. hostPorts only applies to a DaemonSet, and replicas is ignored by it. The PodDisruptionBudget renders only when bunkerweb.replicas is above 1, on any kind.

Controller

The controller runs as either a GatewayController or an IngressController, never both. gatewayClass.enabled: true selects the GatewayController.

Ingress (default) Gateway API (experimental)
Resources watched Ingress Gateway API resources
Switch Default, keep gatewayClass.enabled: false gatewayClass.enabled: true
Prerequisite None Gateway API CRDs

Database, cache and optional parts

Part Bundled Use your own
MariaDB On mariadb.enabled: false and settings.misc.databaseUri. See minimal.yaml.
Redis On redis.enabled: false and settings.redis.redisHost. For Sentinel see redis-sentinel.yaml.
Scheduler On scheduler.enabled: false when another release or cluster runs the scheduler
API Off api.enabled: true, with authentication configured
MCP Off mcp.enabled: true. See the warning below.
Prometheus, Grafana Off prometheus.enabled, grafana.enabled. Advanced metrics need BunkerWeb PRO.

Grafana provisions a BunkerWeb dashboard for requests, attacks and instance health (requires the BunkerWeb PRO Prometheus exporter), plus a Kubernetes logs dashboard (requires a Loki datasource receiving your logs).

Warning

The MCP server has no built-in authentication on /mcp. Restrict access with IP whitelisting or network policies before you expose it.

Production checklist

  • Use external MariaDB and Redis instead of the bundled ones.
  • Keep credentials in one Secret and set settings.existingSecret (bunkerweb-secret.yaml).
  • Set your own UI and database passwords.
  • Run two or more BunkerWeb replicas with bunkerweb.hpa and bunkerweb.pdb (high-availability.yaml).
  • Set CPU and memory requests and limits on every component.
  • Turn on networkPolicy.enabled. Your CNI must enforce NetworkPolicies.
  • Review the pod security contexts.
  • Whitelist trusted IPs before you expose the MCP server.
  • Pick the Service type for your cluster: LoadBalancer (default), NodePort or ClusterIP.

Examples index

Each file lists only the values that differ from the chart defaults. Every file is in examples/, and docs/values.md documents all keys.

Scenario File Command
Production-like, external MariaDB and Redis minimal.yaml helm install bunkerweb bunkerweb/bunkerweb -f examples/minimal.yaml
High availability: replicas, HPA, PDB, topology spread high-availability.yaml helm install bunkerweb bunkerweb/bunkerweb -f examples/high-availability.yaml
Full test stack with Grafana and Prometheus (PRO) all-in-one.yaml helm install bunkerweb-aio bunkerweb/bunkerweb -f examples/all-in-one.yaml
External Redis Sentinel redis-sentinel.yaml -f examples/redis-sentinel.yaml
Credentials in a Secret bunkerweb-secret.yaml kubectl apply -f examples/bunkerweb-secret.yaml
MCP server for AI assistants mcp-integration.yaml helm install bunkerweb bunkerweb/bunkerweb -f examples/mcp-integration.yaml
Logs in the UI logging.yaml -f examples/logging.yaml
Ship logs with Vector logging-services-with-vector.yaml Values for the Vector chart
Custom plugins plugins.yaml -f examples/plugins.yaml

Day 2: upgrade, troubleshoot, uninstall

Upgrade

helm repo update bunkerweb
helm search repo bunkerweb/bunkerweb --versions
helm upgrade mybunkerweb bunkerweb/bunkerweb -n bunkerweb -f myvalues.yaml

Read CHANGELOG.md before each upgrade.

Warning

Charts after 1.0.24. With settings.existingSecret set, the BunkerWeb PRO license comes from the secret's pro-license-key key, and a plain scheduler.proLicenseKey is ignored. The optional feature secrets follow the same rule: zerossl-api-key, custom-ssl-key, sessions-secret, auth-basic-password, darkvisitors-token and crowdsec-api-key.

The secret wins over the matching plaintext values (scheduler.features.sessions.sessionsSecret, scheduler.features.authBasic.authBasicPassword and so on). If you combine settings.existingSecret with plaintext feature values, the plaintext is now ignored. Add the matching keys to your secret, or the feature loses its credential without an error.

Troubleshooting
Symptom Check
BunkerWeb pods do not start kubectl logs -l bunkerweb.io/component=bunkerweb -n bunkerweb
Database connection errors kubectl describe pod -l bunkerweb.io/component=mariadb -n bunkerweb
Ingress has no effect kubectl get ingress -n bunkerweb, then kubectl describe ingressclass bunkerweb
Pod stuck in Pending kubectl get pvc -n bunkerweb. The bundled databases need a PersistentVolume provisioner.

BunkerWeb, the controller and the UI define liveness and readiness probes. Kubernetes restarts them on failure and sends traffic only to ready pods.

Uninstall
helm uninstall mybunkerweb -n bunkerweb

# Optional: remove the namespace
kubectl delete namespace bunkerweb

[!WARNING] Back up the database and any other data before uninstalling. Helm deletes the chart-managed PVCs for MariaDB, Redis, UI logs, Prometheus and Grafana when present. Whether the underlying data survives depends on the StorageClass reclaimPolicy.

Support

Documentation · Issues · Community forum

Licensed under AGPL-3.0, the same terms as BunkerWeb.

About

BunkerWeb Kubernetes helm charts.

Resources

Stars

13 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages