This is the most realistic use case for a Helm-based Nebari Software Pack. Instead of writing your own Deployment and Service templates, you add an existing Helm chart as a dependency and point the NebariApp resource at its service.
Key lesson: You don't rewrite the app - you just connect it to Nebari.
- Adding an upstream Helm chart as a
Chart.yamldependency - Overriding upstream values via your own
values.yaml - Pointing the NebariApp at the upstream chart's service from
values.yaml - No custom Deployment or Service templates needed
Chart.yaml
dependencies:
- name: nebari-app # Official chart that provides the NebariApp template
repository: oci://quay.io/nebari/charts
- name: podinfo # Upstream chart handles pods + services
version: 6.10.1
repository: oci://ghcr.io/stefanprodan/charts
values.yaml
nebariapp: # NebariApp spec: points to podinfo's service
podinfo: # Overrides passed to the podinfo chart
templates/
nebariapp.yaml # Short include of the nebari-app template
(no deployment.yaml!) # Podinfo chart handles this
(no service.yaml!) # Podinfo chart handles this
The only template you write is a short nebariapp.yaml that calls the
nebari-app
template. Everything else comes from the upstream chart or values.yaml.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-pack
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/YOUR-ORG/YOUR-REPO.git
targetRevision: main
path: examples/wrap-existing-chart/chart
helm:
valuesObject:
nebariapp:
enabled: true
hostname: my-pack.nebari.example.com
destination:
server: https://kubernetes.default.svc
namespace: my-pack
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=trueTo override upstream values via ArgoCD:
helm:
valuesObject:
nebariapp:
enabled: true
hostname: my-pack.nebari.example.com
podinfo:
ui:
message: "Custom greeting!"# Build dependencies first
helm dependency update ./chart/
# Deploy on Nebari
helm install my-pack ./chart/ \
--set nebariapp.enabled=true \
--set nebariapp.hostname=my-pack.nebari.example.com
# Override upstream values
helm install my-pack ./chart/ \
--set nebariapp.enabled=true \
--set nebariapp.hostname=my-pack.nebari.example.com \
--set podinfo.ui.message="Custom greeting!"helm dependency update ./chart/
helm install test-wrap ./chart/
# Access via port-forward
kubectl port-forward svc/test-wrap-podinfo 9898:9898
# Open http://localhost:9898| File | Purpose |
|---|---|
chart/Chart.yaml |
Helm chart metadata with podinfo and nebari-app dependencies |
chart/values.yaml |
NebariApp config + podinfo overrides |
chart/templates/_helpers.tpl |
Name, label, and selector helpers |
chart/templates/nebariapp.yaml |
Renders the NebariApp via nebari-app |
chart/templates/NOTES.txt |
Post-install instructions |
To wrap a different upstream chart:
- Replace the
dependenciesentry inChart.yamlwith your chart - Update
nebariapp.service.portto match the upstream service port - Discover the upstream service name (see below)
- Update the service name helper in
_helpers.tplto match - Add any value overrides under the dependency's key in
values.yaml - Run
helm dependency update ./chart/
The NebariApp must reference the upstream chart's Service by its exact name. Different charts use different naming conventions. Always verify:
helm template myrelease ./chart/ | grep "kind: Service" -A2Common patterns:
<release>-<chartname>(e.g.,myrelease-podinfo) - most charts<release>only (e.g.,myrelease) - when the release name contains the chart name, the fullname template collapses (common with charts like Superset)
Don't assume - always check with helm template.
Many popular Helm charts (Superset, Airflow, etc.) use Bitnami PostgreSQL and
Redis as sub-chart dependencies. Since August 2025, Bitnami images are behind a
paywall. The bitnamilegacy/* Docker Hub mirrors exist but are frozen and receive
no security updates.
If your upstream chart depends on Bitnami sub-charts:
- Override image repositories (e.g.,
postgresql.image.repository: bitnamilegacy/postgresql) - Consider alternatives: CloudNativePG for PostgreSQL, Valkey for Redis
- See nebari-dev/nebari-operator#96 for the longer-term platform solution
Helm sub-chart values do not support template expressions ({{ }}). You cannot
dynamically generate configuration for the upstream app from your wrapper chart's
values.yaml. If you need templated config (e.g., generating Python OAuth config
from structured values), put it in example values files that deployers customize,
or create a ConfigMap template in your wrapper chart and mount it via the upstream
chart's volume support.
If your wrapped application needs role-based access control (not just "authenticated or not"), see the App-Native OAuth section for how to wire operator-provisioned Keycloak credentials into your app.
See the main README for the full customization guide.