netbox
by Startechnica
IP address management (IPAM) and data center infrastructure management (DCIM) tool
About this chart
Helm Chart for Netbox
NetBox is the leading solution for modeling and documenting modern networks. By combining the traditional disciplines of IP address management (IPAM) and datacenter infrastructure management (DCIM) with powerful APIs and extensions, NetBox provides the ideal "source of truth" to power network automation. Read on to discover why thousands of organizations worldwide put NetBox at the heart of their infrastructure.
[!IMPORTANT] This is last helm chart release for Netbox v3.x. Please consult Netbox v4.x release notes for any breaking changes before migrating.
[!NOTE] This repository was forked from bootc/netbox-chart at versions v5.0.0 and up are from this fork will have diverged from any changes in the original fork. A list of changes can be seen in the CHANGELOG.
This chart is not maintained by the upstream project and any issues with the chart should be raised here
TL;DR
helm install netbox oci://ghcr.io/startechnica/charts/netbox
âš ï¸ WARNING: Please see Production Usage below before using this chart for production environment.
Compatibility
- Kubernetes 1.25.0+ (a current version)
- Helm 3.10.0+ (a version compatible with your cluster)
- This chart only works with NetBox 3.7.0+ and above.
Installing the Chart
To install the chart with the release name netbox and default configuration:
helm install netbox \
--set postgresql.auth.password=<db-password> \
--set postgresql.auth.postgresPassword=<posgres-password> \
--set redis.auth.password=<redis-password> \
--set superuser.password=<superuser-password> \
--set superuser.apiToken=<superuser-api-token> \
--set secretKey=<secret-key> \
oci://ghcr.io/startechnica/charts/netbox
The default configuration includes the required PostgreSQL and Redis database services, but both should be managed externally in production deployments; see below.
Production Usage
Always use an existing Secret and supply all passwords and secret keys yourself to avoid Helm re-generating any of them for you.
I strongly recommend setting both postgresql.enabled and redis.enabled to
false and using a separate external PostgreSQL and Redis instance. This
de-couples those services from the chart's bundled versions which may have
complex upgrade requirements. I also recommend using a clustered PostgreSQL
server (e.g. using CloudNativePG
Postgres Operator) and Redis
with Sentinel (e.g. using Aaron Layfield's
redis-ha chart).
Set persistence.enabled to false and use the S3 storageBackend for object
storage. This works well with Minio or Ceph RGW as well as Amazon S3. See
Using extraConfig for S3 storage configuration and
Persistent storage pitfalls, below.
Run multiple replicas of the NetBox web front-end to avoid interruptions during
upgrades or at other times when the pods need to be restarted. There's no need
to have multiple workers (worker.replicaCount) for better availability. Set
up affinity.podAntiAffinity to avoid multiple NetBox pods being colocated on
the same node, for example:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/component: server
app.kubernetes.io/instance: netbox
app.kubernetes.io/name: netbox
topologyKey: kubernetes.io/hostname
Uninstalling the Chart
To uninstall/delete the netbox deployment on netbox namespace:
helm delete netbox --namespace netbox
The command removes all the Kubernetes components associated with the chart and deletes the release.
Breaking Changes
From 5.0.0 to 5.0.5
- The
extraEnvssetting has been renamed toextraEnvVars. - The
extraContainerssetting has been renamed tosidecars. - The
extraInitContainerssetting has been renamed toinitContainers. - The
housekeeping.securityContextsetting has been renamed tohousekeeping.containerSecurityContext - The
initsetting has been renamed toinitDirs. - The
ingress.classNamesetting has been renamed toingress.ingressClassName. - The
ingress.hostssetting has been renamed toingress.extraHosts. - The
metricsEnabledsetting has been renamed tometrics.enabled. - The
securityContextsetting has been renamed topodSecurityContextandcontainerSecurityContext. - The
serviceMonitorsetting has been renamed tometrics.serviceMonitor. - The
superuser.password: adminsetting has been changed tosuperuser.password: "". - The
superuser.passwordSecretKeysetting has been renamed tosuperuser.existingSecretPasswordKey. - The
worker.autoscaling.targetCPUUtilizationPercentagesetting has been renamed toworker.autoscaling.targetCPU. - The
worker.autoscaling.targetMemoryUtilizationPercentagesetting has been renamed toworker.autoscaling.targetMemory. - The
worker.extraEnvssetting has been renamed toworker.extraEnvVars.
From 5.0.5 to 5.0.6
- The
gitbinary was removed from the server container — only the worker pod still ships it. Custom scripts / hooks that execgitinside the netbox web pod must move to the worker or rely on a sidecar. - The Keycloak social-auth pipeline wiring shipped with the chart was removed. Configuration for Keycloak now lives in the user's
extraConfig/extraDeploy(seedocs/auth.md); previous values that relied on chart-side glue need to be re-declared. - Worker metrics emission switched off by default (
worker.metrics.enabled: false). Re-enable explicitly if you were scraping the worker port.
From 5.0.6 to 5.0.7
- No breaking changes. Bug-fix release (
ServiceEntryport-443 rendering, housekeepingnodeSelectorindentation, PVC helper typos).
From 5.0.7 to 5.0.8
- Bundled Redis subchart bumped to
bitnamicharts/redis 19.x. The image jumped to Redis 7.x. Pinredis.image.tagin your overrides if you can't take the Redis-version bump in lockstep. netbox.redis.secretNameand the related external-redis helpers were rewritten — overrides that relied onexistingSecretNamecross-falling-back into the netbox top-level secret no longer do so (see #61). Set the redisexistingSecretNameexplicitly per component if you use one.
From 5.0.8 to 5.0.9
- Consolidated image values. Separate
worker.image/housekeeping.imageblocks were dropped in favor of a single top-levelimage:source. If you overrode either per-component image in 5.0.8 or earlier, port the override to the top-levelimage:block. global.imageRegistryfallback handling changed shape. Anyone setting only the per-component blocks (now removed) must move to eitherimage:orglobal.image*.- (Reverted in 5.1.0 via the
_images.tplprecedence fix in #83 — per-component image blocks are back. Roundtrippers between 5.0.8 → 5.0.9 → 5.1.0 should double-checkhelm templateoutput after each step.) appVersionbumped to v3.7.8 (imagenetboxcommunity/netbox:v3.7.8-2.8.0, Netbox Docker 2.8.0). Review the Netbox 3.7.x release notes if jumping multiple minor versions of the application at once.
From 5.0.9 to 5.0.10
- No breaking changes. Adds a missing parameter on the external-DB secret (#71).
From 5.0.10 to 5.1.0
Major subchart and helper migration plus a batch of latent-bug fixes that flip default behavior. Group A below is the modernization shipped early in the 5.1.0 cycle; group B is the second-half patch work that landed before release and tightens defaults / fixes silent misroutings.
A. Subchart and helper migration
- Subchart majors.
postgresql 13.x → 18.7.0(PostgreSQL 16 → 17) andredis 19.x → 27.0.0(Redis 7 → 8). Both upstream image majors. Review PostgreSQL major-upgrade procedure (pg_upgradeif you keep the bundled subchart) and pinpostgresql.image.tag/redis.image.tagto the prior major if you can't take the bump in lockstep — see theUpgrading → To 5.1.0section below. - cert-manager Certificate auto-renders. When
tls.enabled: true(oringress.tlsis non-empty) AND the cert-manager API is on the cluster ANDtls.certificatesSecretis empty, the chart now renders the Certificate automatically. The legacytls.certManager.createandtls.autoGenerator.certManager.enabledtoggles are no longer consulted. Pre-create the Secret and settls.certificatesSecretto opt out for external-controller setups. (Deprecated keys removed in 6.0.0.) gateway.serviceEntryno longer ships hardcoded hosts. The IstioServiceEntryused to render[netbox.dev, github.com, api.github.com]unconditionally. It is now gated ongateway.serviceEntry.enabled: trueandhosts:comes from values. Re-declare the hosts you actually need undergateway.serviceEntry.hosts.- Bitnami
commondependency removed. All templates moved tost-common. Forks / custom subcharts that re-includeinclude "common.X"calls must update toinclude "st-common.X"and re-namespace capability lookups (e.g.common.capabilities.certManager.apiVersion→st-common.capabilities.certmanagerCertificate.apiVersion). Chart.lockis now committed and Bitnami deps are pinned to exact versions. ArgoCD /helm dependency buildconsumers no longer hit the deprecated Bitnamitags/listendpoint. If you patchedChart.locklocally, regenerate it.
B. Default flips and latent-bug fixes
- Service ports changed: HTTP 80 → 8080, HTTPS 443 → 8443.
service.ports.{http,https}and the legacyservice.portnow default to the in-pod container port. Clients hitting the netboxServicedirectly (port-forwards, peer Services in the same cluster, kube-proxy NodePort listeners) need to switch from:80/:443to:8080/:8443. Ingress / Gateway listeners (port 80/443 externally) are unchanged — they still terminate on those well-known ports and proxy to the new internal Service port. global.imageRegistry/imageRepository/imageTagare empty by default. The actual image coordinates (docker.io / netboxcommunity/netbox / v3.7.8-2.8.0) now live on each ofimage:,worker.image:, andhousekeeping.image:. Anyone overriding viaglobal.image*keeps the override (per-component isdefault ((.global).imageX) .imageRoot.X, so a non-empty global still wins when the component value is empty). The render output is byte-identical, but anyone diffing the values shape will see the strings moved.- Worker pod now runs liveness / readiness probes by default.
worker.livenessProbe.enabledandworker.readinessProbe.enabledwere alreadytrueinvalues.yamlin 5.0.x but never rendered into the worker template; 5.1.0 wires them up withexec: pgrep -f "manage.py rqworker"as the default check. Thenetboxcommunity/netboximage shipsprocps, so the check is safe. If you run a stripped custom worker image withoutpgrep, supplyworker.customLivenessProbe/worker.customReadinessProbeor setworker.{livenessProbe,readinessProbe}.enabled: false. - LDAP bind password key fix. Under
remoteAuth.backends: [netbox.authentication.LDAPBackend], the chart was writingremoteAuth.ldap.bindPasswordto a key namedsuperuser_passwordin the netbox Secret, clobbering the actual superuser password. 5.1.0 writes it under the correctldap_bind_passwordkey (resolved vianetbox.remoteAuth.ldap.secretBindPasswordKey) and gates onremoteAuth.ldap.existingSecretName. If you upgraded from 5.0.x with LDAPBackend enabled, rotate the bind password after upgrade — the old shared key has likely been read by both code paths. - External-redis Secret is now skipped when no redis target is configured. Previously the chart always rendered a
<release>-external-redisSecret as long as the redis subchart was disabled and noexistingSecretNamewas set — even with alltasksRedis.* / cachingRedis.* / externalRedis.*left empty. The Secret now only renders when at least one ofexternalRedis.host,externalRedis.password,tasksRedis.password, orcachingRedis.passwordis set; the redis projected-Secret source in all four pod templates is gated on the same condition (so pods no longer failContainerCreating: secret not found). If you intentionally relied on the empty Secret being present (e.g. external automation reads its existence as a marker), set any of the four fields to force the render. - CronJob housekeeping pod scope fixes. Previously the housekeeping CronJob silently inherited the server pod's
containerSecurityContext,extraEnvVarsCM/Secret,sidecars,extraVolumes, andargsfallback. 5.1.0 honors thehousekeeping.*keys (which were declared invalues.yamlall along). If you set bothhousekeeping.Xand the top-levelXfor the same purpose, the housekeeping pod now picks up thehousekeeping.Xvalue where it previously took the top-level. The new defaulthousekeeping.containerSecurityContext.readOnlyRootFilesystem: truematches server/worker. - **Worker repli
Deploy netbox with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has netbox on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnetbox is pinned at v5.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply