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_ID and SITE_SECRET) from an existing Kubernetes Secret
  • provisioning with a provisioning key (SITE_PROVISIONING_KEY and SITE_NAME)
  • single-use provisioning blueprints
  • writable config persistence with emptyDir or 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.14 or newer
  • Helm 3.x
  • kubectl access 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

MethodRecommended forNotes
Existing SecretProductionCredentials are stored in a Kubernetes Secret created outside Helm
Provisioning keyProvisioning installsRequires writable config persistence
Inline valuesLocal testing onlyCredentials 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 pangolin

If 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=restricted

The 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: 1

The 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: 1

auth.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 fossorial

Install the chart:

helm upgrade --install pangolin-site fossorial/pangolin-cli \
  --namespace pangolin \
  --values values-site.yaml

Do 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 pangolin

Check 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=site

Check the logs:

kubectl logs --namespace pangolin \
  -l app.kubernetes.io/component=site \
  --tail=50

Wait for the pod to become ready:

kubectl wait --for=condition=ready pod \
  -l app.kubernetes.io/component=site \
  --namespace pangolin \
  --timeout=60s

Quick 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.json

siteName 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.yaml

emptyDir 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.json

To 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 \
  --follow

In 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.yaml

Check 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 pangolin

Multiple 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: 1
kubectl 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 chartPangolin CLI chart
newtInstances[]siteInstances[]
Secret keys NEWT_ID / NEWT_SECRETSITE_ID / SITE_SECRET
newtNamesiteName
configPersistence.mountPath default /var/lib/newt/var/lib/pangolin
Pod label app.kubernetes.io/component=newtapp.kubernetes.io/component=site
Instance label newt.instancepangolin-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_SECRET

Run 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.yaml

Architecture 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 with useCommandArgs: 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: true

Helm tests

Helm test Jobs are disabled by default. Enable them only when you want to run chart test jobs:

global:
  tests:
    enabled: true

OCI 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.yaml

OCI changes where Helm pulls the chart from. It does not change the values file or the release behavior.

References

Next steps