netbox

by Startechnica

Helm chartv5.1.0App v3.7.8Apache-2.0Verified publisher

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.

Overview of Netbox

[!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 extraEnvs setting has been renamed to extraEnvVars.
  • The extraContainers setting has been renamed to sidecars.
  • The extraInitContainers setting has been renamed to initContainers.
  • The housekeeping.securityContext setting has been renamed to housekeeping.containerSecurityContext
  • The init setting has been renamed to initDirs.
  • The ingress.className setting has been renamed to ingress.ingressClassName.
  • The ingress.hosts setting has been renamed to ingress.extraHosts.
  • The metricsEnabled setting has been renamed to metrics.enabled.
  • The securityContext setting has been renamed to podSecurityContext and containerSecurityContext.
  • The serviceMonitor setting has been renamed to metrics.serviceMonitor.
  • The superuser.password: admin setting has been changed to superuser.password: "".
  • The superuser.passwordSecretKey setting has been renamed to superuser.existingSecretPasswordKey.
  • The worker.autoscaling.targetCPUUtilizationPercentage setting has been renamed to worker.autoscaling.targetCPU.
  • The worker.autoscaling.targetMemoryUtilizationPercentage setting has been renamed to worker.autoscaling.targetMemory.
  • The worker.extraEnvs setting has been renamed to worker.extraEnvVars.

From 5.0.5 to 5.0.6

  • The git binary was removed from the server container — only the worker pod still ships it. Custom scripts / hooks that exec git inside 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 (see docs/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 (ServiceEntry port-443 rendering, housekeeping nodeSelector indentation, 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. Pin redis.image.tag in your overrides if you can't take the Redis-version bump in lockstep.
  • netbox.redis.secretName and the related external-redis helpers were rewritten — overrides that relied on existingSecretName cross-falling-back into the netbox top-level secret no longer do so (see #61). Set the redis existingSecretName explicitly per component if you use one.

From 5.0.8 to 5.0.9

  • Consolidated image values. Separate worker.image / housekeeping.image blocks were dropped in favor of a single top-level image: source. If you overrode either per-component image in 5.0.8 or earlier, port the override to the top-level image: block.
  • global.imageRegistry fallback handling changed shape. Anyone setting only the per-component blocks (now removed) must move to either image: or global.image*.
  • (Reverted in 5.1.0 via the _images.tpl precedence fix in #83 — per-component image blocks are back. Roundtrippers between 5.0.8 → 5.0.9 → 5.1.0 should double-check helm template output after each step.)
  • appVersion bumped to v3.7.8 (image netboxcommunity/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) and redis 19.x → 27.0.0 (Redis 7 → 8). Both upstream image majors. Review PostgreSQL major-upgrade procedure (pg_upgrade if you keep the bundled subchart) and pin postgresql.image.tag / redis.image.tag to the prior major if you can't take the bump in lockstep — see the Upgrading → To 5.1.0 section below.
  • cert-manager Certificate auto-renders. When tls.enabled: true (or ingress.tls is non-empty) AND the cert-manager API is on the cluster AND tls.certificatesSecret is empty, the chart now renders the Certificate automatically. The legacy tls.certManager.create and tls.autoGenerator.certManager.enabled toggles are no longer consulted. Pre-create the Secret and set tls.certificatesSecret to opt out for external-controller setups. (Deprecated keys removed in 6.0.0.)
  • gateway.serviceEntry no longer ships hardcoded hosts. The Istio ServiceEntry used to render [netbox.dev, github.com, api.github.com] unconditionally. It is now gated on gateway.serviceEntry.enabled: true and hosts: comes from values. Re-declare the hosts you actually need under gateway.serviceEntry.hosts.
  • Bitnami common dependency removed. All templates moved to st-common. Forks / custom subcharts that re-include include "common.X" calls must update to include "st-common.X" and re-namespace capability lookups (e.g. common.capabilities.certManager.apiVersion → st-common.capabilities.certmanagerCertificate.apiVersion).
  • Chart.lock is now committed and Bitnami deps are pinned to exact versions. ArgoCD / helm dependency build consumers no longer hit the deprecated Bitnami tags/list endpoint. If you patched Chart.lock locally, regenerate it.

B. Default flips and latent-bug fixes

  • Service ports changed: HTTP 80 → 8080, HTTPS 443 → 8443. service.ports.{http,https} and the legacy service.port now default to the in-pod container port. Clients hitting the netbox Service directly (port-forwards, peer Services in the same cluster, kube-proxy NodePort listeners) need to switch from :80/:443 to :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 / imageTag are empty by default. The actual image coordinates (docker.io / netboxcommunity/netbox / v3.7.8-2.8.0) now live on each of image:, worker.image:, and housekeeping.image:. Anyone overriding via global.image* keeps the override (per-component is default ((.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.enabled and worker.readinessProbe.enabled were already true in values.yaml in 5.0.x but never rendered into the worker template; 5.1.0 wires them up with exec: pgrep -f "manage.py rqworker" as the default check. The netboxcommunity/netbox image ships procps, so the check is safe. If you run a stripped custom worker image without pgrep, supply worker.customLivenessProbe / worker.customReadinessProbe or set worker.{livenessProbe,readinessProbe}.enabled: false.
  • LDAP bind password key fix. Under remoteAuth.backends: [netbox.authentication.LDAPBackend], the chart was writing remoteAuth.ldap.bindPassword to a key named superuser_password in the netbox Secret, clobbering the actual superuser password. 5.1.0 writes it under the correct ldap_bind_password key (resolved via netbox.remoteAuth.ldap.secretBindPasswordKey) and gates on remoteAuth.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-redis Secret as long as the redis subchart was disabled and no existingSecretName was set — even with all tasksRedis.* / cachingRedis.* / externalRedis.* left empty. The Secret now only renders when at least one of externalRedis.host, externalRedis.password, tasksRedis.password, or cachingRedis.password is set; the redis projected-Secret source in all four pod templates is gated on the same condition (so pods no longer fail ContainerCreating: 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, and args fallback. 5.1.0 honors the housekeeping.* keys (which were declared in values.yaml all along). If you set both housekeeping.X and the top-level X for the same purpose, the housekeeping pod now picks up the housekeeping.X value where it previously took the top-level. The new default housekeeping.containerSecurityContext.readOnlyRootFilesystem: true matches 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnetbox is pinned at v5.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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