Configuration
Configuration reference for Pangolin Kubernetes deployments.
This page covers the main Pangolin Kubernetes configuration options for Helm and Kustomize workflows.
For exhaustive option coverage, refer to the chart resources:
Version context
This page is aligned with the Pangolin Helm chart 0.1.0-alpha.0.
| Item | Value |
|---|---|
| Chart version | 0.1.0-alpha.0 |
| Pangolin app version | 1.18.2 |
| Kubernetes version | >=1.30.14-0 |
| Gerbil image tag | 1.3.1 |
| pangolin-kube-controller image tag | 0.1.0-alpha.1 |
| Traefik image tag | v3.6.15 |
Configuration sections
Deployment topology
Control how Pangolin components are deployed and integrated with Kubernetes.
deployment:
type: controller
mode: multi
installTraefikController: false
traefikNamespace: ""Recommended production topology:
deployment:
type: controller
mode: multi| Setting | Description |
|---|---|
deployment.type=controller | Uses pangolin-kube-controller and Traefik CRDs. Recommended for Kubernetes deployments. |
deployment.type=standalone | Runs an internal Traefik workload managed by this chart. Mainly useful for labs and self-contained deployments. |
deployment.mode=multi | Runs Pangolin, Gerbil, and controller/Traefik components as separate workloads. Recommended for production. |
deployment.mode=single | Runs multiple components in one shared Pod. Useful only when you explicitly need a compact topology. |
deployment.installTraefikController=true | Installs the bundled Traefik dependency in controller mode. |
deployment.traefikNamespace | Namespace where Traefik controller resources live. Defaults to the release namespace when empty. |
In controller mode, Traefik CRDs and a Traefik controller must be available. You can install Traefik separately or enable the bundled Traefik dependency with deployment.installTraefikController=true.
If you enable the bundled Traefik dependency, put Traefik chart overrides under the traefikController key.
Namespace and Pod Security Admission
Namespace creation is controlled by the namespace block.
namespace:
create: false
name: ""
labels: {}
podSecurity:
enforce: ""
warn: ""
audit: ""Recommended pattern:
- Create the namespace manually.
- Apply the required labels and annotations.
- Install the chart into that namespace.
kubectl create namespace pangolinGerbil requires NET_ADMIN for WireGuard interface management. If your cluster enforces Pod Security Admission, the namespace must allow that capability.
Example:
kubectl label namespace pangolin \
pod-security.kubernetes.io/enforce=privileged \
--overwriteIf you let the chart create the namespace, configure the Pod Security labels through values:
namespace:
create: true
name: pangolin
podSecurity:
enforce: privileged
warn: baseline
audit: restrictedDo not apply a restricted Pod Security profile to a namespace running Gerbil unless you have validated WireGuard functionality. Gerbil requires NET_ADMIN; removing it breaks tunnel management.
Database modes
Choose the database backend for Pangolin.
database:
mode: cloudnativepg
name: pangolin
username: pangolinSupported modes:
| Mode | Use case |
|---|---|
cloudnativepg | Recommended production mode using CloudNativePG. This is the default. |
external | Production mode with an externally managed PostgreSQL database. |
embedded | Chart-managed PostgreSQL for labs and test environments. |
sqlite | Development or CI only. Not recommended for production. |
CloudNativePG
The default database mode is cloudnativepg.
database:
mode: cloudnativepg
cloudnativepg:
cluster:
name: pangolin-db
connection:
database: pangolin
username: pangolin
sslMode: disable
cnpg-operator:
enabled: false
cnpg-cluster:
enabled: false
fullnameOverride: pangolin-dbCloudNativePG can be used in four common ways:
| Mode | Values |
|---|---|
| Existing operator and existing cluster | cnpg-operator.enabled=false, cnpg-cluster.enabled=false |
| Chart installs operator only | cnpg-operator.enabled=true, cnpg-cluster.enabled=false |
| Chart installs cluster only | cnpg-operator.enabled=false, cnpg-cluster.enabled=true |
| Chart installs operator and cluster | cnpg-operator.enabled=true, cnpg-cluster.enabled=true |
When cnpg-cluster.enabled=true, keep the CNPG cluster name consistent:
database:
cloudnativepg:
cluster:
name: pangolin-db
cnpg-cluster:
enabled: true
fullnameOverride: pangolin-dbFor the default CNPG cluster name pangolin-db, CloudNativePG creates an application Secret named pangolin-db-app with the key uri. The chart can automatically use this default Secret when no explicit database.connection.existingSecretName is set.
Explicit Secret reference:
database:
connection:
existingSecretName: pangolin-db-app
existingSecretKey: uriExternal PostgreSQL
For an external PostgreSQL database, prefer a Kubernetes Secret containing the final connection string.
database:
mode: external
connection:
existingSecretName: pangolin-db-connection
existingSecretKey: connectionStringThe Secret should contain a PostgreSQL connection string:
kubectl create secret generic pangolin-db-connection \
--namespace pangolin \
--from-literal=connectionString='postgresql://pangolin:password@postgres.example.com:5432/pangolin?sslmode=require'You can also let the chart create a connection Secret from values:
database:
mode: external
external:
generatedSecret:
create: true
host: postgres.example.com
port: 5432
database: pangolin
username: pangolin
password: "<password>"
sslMode: requireAvoid storing database passwords directly in values files for production. Use an existing Secret or your normal secret-management workflow.
Embedded PostgreSQL
Embedded PostgreSQL is intended for labs and tests.
database:
mode: embedded
embedded:
persistence:
enabled: true
size: 8GiSQLite
SQLite is only suitable for development, CI, or very small test deployments.
database:
mode: sqlite
sqlite:
persistence:
enabled: true
size: 1GiPangolin application config
The pangolin.config block renders /app/config/config.yml.
pangolin:
config:
app:
dashboard_url: "https://pangolin.example.com"
log_level: info
domains:
domain1:
base_domain: "example.com"
cert_resolver: "letsencrypt"
gerbil:
start_port: 51820
clients_start_port: 21820
base_endpoint: "pangolin.example.com"
traefik:
enabled: true
http_entrypoint: web
https_entrypoint: websecure
cert_resolver: letsencryptImportant settings:
| Setting | Description |
|---|---|
pangolin.config.app.dashboard_url | Public dashboard URL. Set this to the real user-facing URL. |
pangolin.config.domains | Domain map used by Pangolin. Replace the default example.com entry before production use. |
pangolin.config.gerbil.base_endpoint | Public hostname or IP where Gerbil is reachable. |
pangolin.config.gerbil.start_port | First WireGuard site port. Keep this aligned with gerbil.ports.wg1. |
pangolin.config.gerbil.clients_start_port | Client WireGuard port. Keep this aligned with gerbil.ports.wg2. |
pangolin.config.traefik.enabled | Includes Pangolin's Traefik config section. This does not install Traefik. |
pangolin.config.traefik.cert_resolver | ACME resolver name used in Pangolin-generated Traefik configuration. |
pangolin.config.traefik controls the Traefik configuration generated by Pangolin. Traefik installation is controlled separately through controller mode, the bundled Traefik dependency, or standalone Traefik mode.
Pangolin app secret
Pangolin requires SERVER_SECRET.
Use an existing Secret for production:
pangolin:
secret:
existingSecretName: pangolin-app-secret
existingSecretKey: SERVER_SECRETCreate the Secret:
kubectl create secret generic pangolin-app-secret \
--namespace pangolin \
--from-literal=SERVER_SECRET='<strong-random-secret>'If no existing Secret is provided, the chart can generate one:
pangolin:
secret:
generated:
create: true
key: SERVER_SECRET
length: 64Do not commit plaintext secrets to Git. For GitOps workflows, use SOPS, Sealed Secrets, External Secrets Operator, Vault, Infisical, or a cloud secret manager.
Dashboard IngressRoute
In controller mode, the chart can render a Traefik IngressRoute for the Pangolin dashboard and API.
pangolin:
ingressRoute:
dashboard:
enabled: true
host: ""
ingressClassName: ""
traefikSelectorLabels: {}
entryPoints:
- websecure
routes:
api:
enabled: true
pathPrefix: /api/v1
priority: 100
dashboard:
enabled: true
priority: 10
tls:
enabled: true
certResolver: ""
secretName: ""Default routing behavior:
| Route | Match | Backend port |
|---|---|---|
| API | Host(...) && PathPrefix(/api/v1) | pangolin.service.ports.external, default 3000 |
| Dashboard | Host(...) | pangolin.service.ports.next, default 3002 |
The host defaults to the hostname from pangolin.config.app.dashboard_url. You can override it with:
pangolin:
ingressRoute:
dashboard:
host: pangolin.example.comTLS with certResolver
pangolin:
config:
traefik:
cert_resolver: letsencrypt
ingressRoute:
dashboard:
tls:
enabled: true
certResolver: letsencrypt
secretName: ""TLS with existing Secret
pangolin:
ingressRoute:
dashboard:
tls:
enabled: true
certResolver: ""
secretName: pangolin-dashboard-tlstls.certResolver and tls.secretName are mutually exclusive. Use one or the other.
Multi-Traefik setups
Use labels to target a specific Traefik CRD provider when multiple Traefik instances watch different label selectors:
pangolin:
ingressRoute:
dashboard:
traefikSelectorLabels:
traefik-instance: publicYou can also set an ingress class annotation:
pangolin:
ingressRoute:
dashboard:
ingressClassName: traefik-publicGerbil
Gerbil manages WireGuard tunnel connectivity for Pangolin.
gerbil:
enabled: true
startupMode: normal
ports:
wg1: 51820
wg2: 21820
internalApi: 3004
service:
enabled: true
type: ClusterIP
persistence:
enabled: true
size: 1GiImportant settings:
| Setting | Description |
|---|---|
gerbil.enabled | Enables the Gerbil component. |
gerbil.startupMode | Controls first-run and normal startup behavior. |
gerbil.ports.wg1 | First WireGuard UDP port. Keep aligned with pangolin.config.gerbil.start_port. |
gerbil.ports.wg2 | Second WireGuard UDP port. Keep aligned with pangolin.config.gerbil.clients_start_port. |
gerbil.ports.internalApi | Internal Gerbil API/listener port. |
gerbil.service.enabled | Creates a Service for Gerbil UDP traffic. |
gerbil.persistence.enabled | Persists Gerbil key/config data. Recommended for production. |
If Gerbil is exposed through a reverse proxy or UDP gateway, keep proxy protocol settings aligned end-to-end. Do not enable proxy protocol on the upstream hop unless Gerbil is configured to accept it.
Startup mode
gerbil:
startupMode: delayed| Mode | Behavior |
|---|---|
normal | Starts Gerbil immediately. Use after Pangolin setup is complete. |
delayed | Renders Gerbil resources but keeps the Deployment at replicas: 0 in multi mode. Useful for first installs and smoke tests. |
disabledUntilSetup | Does not render Gerbil resources until switched back to normal or delayed. |
For first installs, delayed can help when Gerbil would otherwise fail before the initial Pangolin setup is complete.
Switch back after setup:
helm upgrade pangolin fossorial/pangolin \
--namespace pangolin \
--reuse-values \
--set gerbil.startupMode=normalSecurity
Gerbil requires NET_ADMIN.
gerbil:
securityContext:
runAsNonRoot: false
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
capabilities:
add:
- NET_ADMIN
drop:
- ALLDo not remove NET_ADMIN from Gerbil. Without it, Gerbil cannot create or manage WireGuard interfaces. SYS_MODULE is not added by default and should only be added when your node kernel requires module loading from inside the container.
NetworkPolicy
NetworkPolicy rendering is enabled by default.
The chart-managed NetworkPolicies are intended to allow required Pangolin, Gerbil, database, DNS, and controller traffic for standard deployments.
networkPolicy:
enabled: true
allowExternalIngress: true
allowExternalEgressHttps: false
dns:
enabled: true
database:
enabled: true
port: 5432
controller:
egress:
enabled: true
kubernetesApi:
enabled: true
cidr: ""
port: 443
metrics:
enabled: false
gerbil:
allowWireguardUdpEgress: true
wireguardUdpCIDRs:
- 0.0.0.0/0Important defaults:
| Setting | Default | Notes |
|---|---|---|
networkPolicy.enabled | true | Renders NetworkPolicy resources. |
networkPolicy.allowExternalIngress | true | Allows public ingress to exposed services controlled by the chart. |
networkPolicy.allowExternalEgressHttps | false | Broad HTTPS egress is not allowed by default. Prefer scoped extraEgress rules. |
networkPolicy.dns.enabled | true | Allows DNS egress. |
networkPolicy.database.enabled | true | Adds database egress rules for Pangolin. |
networkPolicy.controller.egress.kubernetesApi.enabled | true | Allows controller API-server access when configured. |
networkPolicy.gerbil.allowWireguardUdpEgress | true | Allows Gerbil UDP egress for WireGuard peer traffic. |
When tightening policies, verify these paths:
- DNS egress
- Pangolin to database
- controller to Kubernetes API
- ingress controller to Pangolin service
- Gerbil UDP traffic
- outbound access for SMTP, OIDC, webhooks, or other external integrations
Use component-scoped rules where possible:
networkPolicy:
pangolin:
extraEgress: []
controller:
extraEgress: []
gerbil:
extraEgress: []If you disable or replace chart-managed NetworkPolicies, ensure your custom policies still allow all required traffic paths.
Monitoring
The chart has chart-level monitoring settings for Pangolin and controller-specific monitoring settings for pangolin-kube-controller.
Pangolin monitoring
monitoring:
enabled: false
service:
enabled: false
type: ClusterIP
port: 9090
portName: metrics
metrics:
targetPortName: metrics
targetPort: 9090
path: /metricsController monitoring
controller:
service:
enabled: true
port: 9090
portName: metrics
monitoring:
serviceMonitor:
enabled: false
podMonitor:
enabled: false
prometheusRule:
enabled: falseEnable controller ServiceMonitor when Prometheus Operator is available:
controller:
monitoring:
serviceMonitor:
enabled: trueEnable chart-level metrics Service when the Pangolin app exposes metrics in your selected configuration:
monitoring:
enabled: true
service:
enabled: trueOnly enable ServiceMonitor, PodMonitor, or PrometheusRule resources when the matching CRDs are installed in the cluster.
ServiceAccount and RBAC
The chart uses separate ServiceAccounts for Pangolin, Gerbil, and the controller in multi mode.
serviceAccount:
pangolin:
create: true
automountServiceAccountToken: false
gerbil:
create: true
automountServiceAccountToken: false
controller:
create: true
automountServiceAccountToken: true
rbac:
create: trueDefault behavior:
| Component | API token mounted by default | Reason |
|---|---|---|
| Pangolin | No | The app does not need Kubernetes API access. |
| Gerbil | No | Gerbil manages WireGuard and does not need Kubernetes API access. |
| Controller | Yes | The controller reconciles Traefik CRDs and needs Kubernetes API access. |
In deployment.mode=single with deployment.type=controller, Kubernetes ServiceAccount selection is Pod-level. The shared Pod uses the controller ServiceAccount and token.
Resources, scheduling, and images
Global scheduling defaults:
global:
storageClass: ""
image:
registry: docker.io
imagePullPolicy: IfNotPresent
imagePullSecrets: []
nodeSelector: {}
tolerations: []
affinity: {}
topologySpreadConstraints: []
priorityClassName: ""Resource rendering policy:
resourcesPolicy:
cpuLimits:
enabled: true
ephemeralStorage:
enabled: falseCPU limits can cause throttling even when spare CPU exists on the node. For most deployments, start with CPU requests and memory limits, then add CPU limits only when explicitly required.
Pangolin resources:
pangolin:
resources:
requests:
cpu: 200m
memory: 256Mi
ephemeral-storage: 32Mi
limits:
cpu: 1000m
memory: 1Gi
ephemeral-storage: 256MiGerbil resources:
gerbil:
resources:
requests:
cpu: 100m
memory: 128Mi
ephemeral-storage: 16Mi
limits:
cpu: 500m
memory: 512Mi
ephemeral-storage: 128MiController resources:
controller:
resources:
requests:
cpu: 100m
memory: 128Mi
ephemeral-storage: 16Mi
limits:
cpu: 500m
memory: 512Mi
ephemeral-storage: 128MiImage configuration:
images:
pangolin:
registry: docker.io
repository: fosrl/pangolin
tag: ""
digest: ""
pangolinPostgresql:
registry: docker.io
repository: fosrl/pangolin
tag: ""
digest: ""
gerbil:
registry: docker.io
repository: fosrl/gerbil
tag: "1.3.1"
digest: ""
controller:
registry: ghcr.io
repository: fosrl/pangolin-kube-controller
tag: "0.1.0-alpha.1"
digest: ""
traefik:
registry: docker.io
repository: traefik
tag: v3.6.15
digest: ""The chart automatically selects the PostgreSQL-capable Pangolin image variant for non-SQLite database modes unless you override the Pangolin tag or digest.
Ephemeral-storage requests and limits are only rendered when resourcesPolicy.ephemeralStorage.enabled=true.
Standalone Traefik
Standalone Traefik is used mainly when deployment.type=standalone.
traefik:
enabled: false
service:
enabled: true
type: LoadBalancer
config:
dashboard: false
httpEntrypoint: web
httpsEntrypoint: websecure
certResolver: letsencrypt
letsencryptEmail: ""
persistence:
enabled: falseImportant notes:
traefik.enabled=trueruns an internal Traefik workload managed by this chart.traefik.config.letsencryptEmailis required when standalone Traefik is enabled.- If you enable the Traefik dashboard, enable
traefik.persistence.enabledso ACME state survives restarts. - In controller mode, prefer using an existing or bundled Traefik controller instead of standalone Traefik.
Blueprint storage
The chart can store Pangolin Blueprint YAML files as Kubernetes ConfigMaps and Secrets.
pangolin:
blueprints:
enabled: false
configMap:
create: true
files: {}
environmentSecret:
create: true
existingConfigMap: ""
existingEnvironmentSecret: ""Example:
pangolin:
blueprints:
enabled: true
configMap:
create: true
files:
site-blueprint.yaml: |
sites:
my-site:
name: My Site
public-resources:
web-app:
name: Web Application
protocol: http
full-domain: "app.example.com"
targets:
- site: my-site
hostname: app
port: 8080
method: httpSensitive blueprint environment values should come from a Secret:
pangolin:
blueprints:
enabled: true
existingConfigMap: my-blueprint-configmap
existingEnvironmentSecret: my-blueprint-envThe Pangolin server does not apply Blueprint files directly. Blueprints are applied by Pangolin Sites through the Pangolin API using --blueprint-file or --provisioning-blueprint-file.
Configuration by install method
Helm
Use a values file:
helm upgrade --install pangolin fossorial/pangolin \
--namespace pangolin \
--values values-pangolin.yamlUse inline values only for small tests:
helm upgrade --install pangolin fossorial/pangolin \
--namespace pangolin \
--set deployment.type=controller \
--set deployment.mode=multi \
--set database.mode=cloudnativepg \
--set pangolin.config.app.dashboard_url=https://pangolin.example.comSee Pangolin Helm for the installation flow.
For complete application configuration keys and examples, see:
Kustomize
Render the chart with Helm, then apply Kustomize overlays:
helm template pangolin fossorial/pangolin \
--namespace pangolin \
--values values-pangolin.yaml \
> base/pangolin.yamlApply the overlay:
kubectl apply -k overlays/prodSee Pangolin Kustomize for the Kustomize workflow.
GitOps
Store Helm values or Kustomize overlays in Git. Argo CD or Flux reconciles the desired state.
Argo CD Helm example:
spec:
source:
helm:
values: |
deployment:
type: controller
mode: multi
database:
mode: cloudnativepgFlux HelmRelease example:
spec:
values:
deployment:
type: controller
mode: multi
database:
mode: cloudnativepgSee GitOps for GitOps guidance.

