Helm
Install and manage sites on Kubernetes with the Pangolin CLI Helm chart.
This guide installs and manages sites in Kubernetes with the fosrl/pangolin-cli Helm chart. The chart runs the Pangolin CLI as a site connector (pangolin-cli up site).
The Pangolin CLI chart is the recommended way to run sites on Kubernetes. Existing Newt deployments keep working; see Helm (Newt) for the Newt chart and Migrating from the Newt chart to switch.
See Version Matrix for chart and default app version references.
What the chart supports
The Pangolin CLI chart deploys one or more sites through siteInstances[]. Each enabled entry becomes its own Deployment.
Chart 0.1.0 (Pangolin CLI 0.20.0) supports:
- site credentials (
SITE_IDandSITE_SECRET) from an existing Kubernetes Secret - provisioning with a provisioning key (
SITE_PROVISIONING_KEYandSITE_NAME) - single-use provisioning blueprints
- writable config persistence with
emptyDiror an existing PVC - configuration through environment variables (default) or command-line flags (
useCommandArgs: true) - optional metrics, PodMonitor, ServiceMonitor, and PrometheusRule
- optional NetworkPolicy, RBAC, mTLS client certificates, and up/down scripts
- multi-instance deployments with per-instance overrides
The image is docker.io/fosrl/pangolin-cli, also published as ghcr.io/fosrl/cli.
Prerequisites
Before installing, you need:
- Kubernetes
1.30.14or newer - Helm 3.x
kubectlaccess to the target cluster- a reachable Pangolin instance
- either:
- site credentials from Pangolin: the site ID and secret
- or a provisioning key for provisioning installs
See Prerequisites for cluster, namespace, storage, networking, and security planning.
Authentication options
| Method | Recommended for | Notes |
|---|---|---|
| Existing Secret | Production | Credentials are stored in a Kubernetes Secret created outside Helm |
| Provisioning key | Provisioning installs | Requires writable config persistence |
| Inline values | Local testing only | Credentials may be stored in Helm release history |
For production, use auth.existingSecretName or a GitOps-safe secret workflow.
Quick install with existing Secret
This is the recommended simple production pattern.
Step 1: Create the namespace
kubectl create namespace pangolinIf your cluster uses Pod Security Admission labels, namespace labels, or policy annotations, apply them before installing the chart:
kubectl label namespace pangolin \
pod-security.kubernetes.io/enforce=baseline \
pod-security.kubernetes.io/audit=restricted \
pod-security.kubernetes.io/warn=restrictedThe chart can create namespaces through namespace.create, but creating the namespace explicitly is recommended when your cluster uses Pod Security Admission, namespace labels, or policy annotations.
Step 2: Create the site Secret
Create a Secret with the site credentials from Pangolin:
kubectl create secret generic pangolin-site-auth \
--namespace pangolin \
--from-literal=PANGOLIN_ENDPOINT=https://pangolin.example.com \
--from-literal=SITE_ID=<your-site-id> \
--from-literal=SITE_SECRET=<your-site-secret>Pangolin shows the site ID and secret when you create the site in the dashboard.
Step 3: Create a values file
Create values-site.yaml:
siteInstances:
- name: main-tunnel
enabled: true
auth:
existingSecretName: pangolin-site-auth
replicas: 1The default Secret keys are PANGOLIN_ENDPOINT, SITE_ID, and SITE_SECRET. Set auth.keys.* only if your Secret uses different key names:
siteInstances:
- name: main-tunnel
enabled: true
auth:
existingSecretName: pangolin-site-auth
keys:
endpointKey: PANGOLIN_ENDPOINT
idKey: SITE_ID
secretKey: SITE_SECRET
replicas: 1auth.keys.* are key names inside the Kubernetes Secret, not the credential values themselves.
Step 4: Install the chart
Add the Helm repository:
helm repo add fossorial https://charts.fossorial.io
helm repo update fossorialInstall the chart:
helm upgrade --install pangolin-site fossorial/pangolin-cli \
--namespace pangolin \
--values values-site.yamlDo not use --create-namespace here if you created and labeled the namespace manually.
Step 5: Verify the deployment
Check the Helm release:
helm status pangolin-site --namespace pangolinCheck the pods. Site pods carry the app.kubernetes.io/component=site label, and each instance also carries pangolin-cli.instance=<name>:
kubectl get pods --namespace pangolin \
-l app.kubernetes.io/component=siteCheck the logs:
kubectl logs --namespace pangolin \
-l app.kubernetes.io/component=site \
--tail=50Wait for the pod to become ready:
kubectl wait --for=condition=ready pod \
-l app.kubernetes.io/component=site \
--namespace pangolin \
--timeout=60sQuick install with provisioning key
Provisioning-based installs exchange a provisioning key for site credentials on first start. The site stores the resulting configuration, so provisioning needs writable config persistence. The chart provides it through siteInstances[x].configPersistence and sets CONFIG_FILE for you.
Create values-site.yaml:
siteInstances:
- name: main-tunnel
enabled: true
pangolinEndpoint: https://pangolin.example.com
provisioningKey: "<your-provisioning-key>"
siteName: "my-site"
configPersistence:
enabled: true
type: emptyDir
mountPath: /var/lib/pangolin
fileName: config.jsonsiteName sets the name of the site created in Pangolin (SITE_NAME). It is separate from name, which only identifies the instance inside the chart.
Install the chart:
helm upgrade --install pangolin-site fossorial/pangolin-cli \
--namespace pangolin \
--values values-site.yamlemptyDir is enough for testing, but it is ephemeral: a rescheduled pod loses the stored credentials. For durable provisioning state, use type: persistentVolumeClaim with an existing PVC.
Example with an existing PVC:
siteInstances:
- name: main-tunnel
enabled: true
pangolinEndpoint: https://pangolin.example.com
provisioningKey: "<your-provisioning-key>"
siteName: "my-site"
configPersistence:
enabled: true
type: persistentVolumeClaim
existingClaim: my-site-config
mountPath: /var/lib/pangolin
fileName: config.jsonTo apply a blueprint once, right after provisioning, set provisioningBlueprintFile and provisioningBlueprintData on the instance. See the chart README for an example.
Verifying connectivity
Follow the site logs:
kubectl logs --namespace pangolin \
-l app.kubernetes.io/component=site \
--followIn the Pangolin dashboard, verify that the site is online.
If the pod is running but the site does not connect, check:
PANGOLIN_ENDPOINT- the site ID and secret, or the provisioning key
- DNS resolution from inside the cluster
- outbound network access from the site pod
- TLS validity for the Pangolin endpoint
Upgrade
helm repo update fossorial
helm upgrade pangolin-site fossorial/pangolin-cli \
--namespace pangolin \
--values values-site.yamlCheck upgrade status, and roll back if needed:
helm status pangolin-site --namespace pangolin
helm history pangolin-site --namespace pangolin
helm rollback pangolin-site <revision> --namespace pangolinMultiple sites
One release can run several sites. Each needs its own Secret:
siteInstances:
- name: site-a
enabled: true
auth:
existingSecretName: pangolin-site-auth-a
replicas: 1
- name: site-b
enabled: true
auth:
existingSecretName: pangolin-site-auth-b
replicas: 1kubectl create secret generic pangolin-site-auth-a \
--namespace pangolin \
--from-literal=PANGOLIN_ENDPOINT=https://pangolin.example.com \
--from-literal=SITE_ID=<site-a-id> \
--from-literal=SITE_SECRET=<site-a-secret>
kubectl create secret generic pangolin-site-auth-b \
--namespace pangolin \
--from-literal=PANGOLIN_ENDPOINT=https://pangolin.example.com \
--from-literal=SITE_ID=<site-b-id> \
--from-literal=SITE_SECRET=<site-b-secret>Migrating from the Newt chart
The Pangolin CLI chart has the same layout as the Newt chart. These names differ:
| Newt chart | Pangolin CLI chart |
|---|---|
newtInstances[] | siteInstances[] |
Secret keys NEWT_ID / NEWT_SECRET | SITE_ID / SITE_SECRET |
newtName | siteName |
configPersistence.mountPath default /var/lib/newt | /var/lib/pangolin |
Pod label app.kubernetes.io/component=newt | app.kubernetes.io/component=site |
Instance label newt.instance | pangolin-cli.instance |
The site ID and secret Pangolin issued for a Newt site work with the Pangolin CLI. To reuse an existing Newt Secret without recreating it, map its keys:
siteInstances:
- name: main-tunnel
enabled: true
auth:
existingSecretName: newt-auth
keys:
endpointKey: PANGOLIN_ENDPOINT
idKey: NEWT_ID
secretKey: NEWT_SECRETRun only one connector per site. Uninstall the Newt release (or disable its instance) before installing the Pangolin CLI chart for the same site:
helm uninstall newt --namespace pangolin
helm upgrade --install pangolin-site fossorial/pangolin-cli \
--namespace pangolin \
--values values-site.yamlArchitecture notes
Instance-based deployment
siteInstances[]defines the sites rendered by the chart.- Each enabled instance creates its own Deployment, named
<release>-pangolin-cli-<instance>. - The container always runs
pangolin-cli up site; settings are passed as environment variables, or as flags withuseCommandArgs: true. - Each instance can use its own Secret, provisioning settings, resources, service settings, and network policy settings.
- Per-instance namespace and service account overrides require
allowGlobalOverride: true.
RBAC
rbac.create defaults to false. Enable it only when your configuration needs Kubernetes API permissions:
rbac:
create: trueHelm tests
Helm test Jobs are disabled by default. Enable them only when you want to run chart test jobs:
global:
tests:
enabled: trueOCI install
The chart is also published as an OCI chart in GHCR:
helm upgrade --install pangolin-site oci://ghcr.io/fosrl/helm-charts/pangolin-cli \
--version 0.1.0 \
--namespace pangolin \
--values values-site.yamlOCI changes where Helm pulls the chart from. It does not change the values file or the release behavior.
References
Next steps
Was this page helpful?