Docs
HelmApi

NetBoxEnterprise CRD

Complete field reference for the NetBoxEnterprise custom resource definition

The NetBoxEnterprise custom resource defines a complete NetBox Enterprise deployment. The nbe-operator watches these resources and reconciles them into the appropriate Kubernetes objects.

API Details:

FieldValue
Groupnetboxlabs.com
Versionsv1alpha2 (storage), v1alpha1 (served)
KindNetBoxEnterprise
ScopeNamespaced
Short namenbe

NetBox Enterprise 2.2.0 introduced the v1alpha2 schema as the storage version. The older v1alpha1 schema is still served in 2.3.0, so existing manifests keep applying unchanged. The two versions carry the same JSON wire shape -- v1alpha2 is v1alpha1 with the defaulted fields made optional. No conversion webhook exists, and none is needed. A one-time storage migration runs at operator startup and re-encodes stored resources as v1alpha2. No action is required. The examples below use v1alpha2.

Full CRD: netboxenterprises.netboxlabs.com-v2.3.0.yaml

Minimal Example

apiVersion: netboxlabs.com/v1alpha2
kind: NetBoxEnterprise
metadata:
  name: netbox
  namespace: netbox
spec:
  netbox:
    replicas: 1
    worker:
      replicas: 1
  postgresql:
    external: false
  redis:
    external: false

Full Example

apiVersion: netboxlabs.com/v1alpha2
kind: NetBoxEnterprise
metadata:
  name: netbox
  namespace: netbox
spec:
  suspend: false
  maintenanceMode: false

  labels:
    app.kubernetes.io/managed-by: netbox-operator

  imagePullSecrets:
    - netbox-enterprise-registry

  netbox:
    replicas: 2
    httpPort: 8080
    mediaStorageSize: "10Gi"
    urls:
      - "https://netbox.example.com"
    resources:
      cpu: 500
      memory: 1024
    limits:
      cpu: 2000
      memory: 2048
    worker:
      replicas: 2
      resources:
        cpu: 200
        memory: 256
      limits:
        cpu: 1000
        memory: 1500
    config:
      metricsEnabled: true
      allowedHosts:
        - "*"

  postgresql:
    external: false
    instances: 2
    version: "18"
    storageSize: "20Gi"
    resources:
      cpu: 500
      memory: 1024
    limits:
      cpu: 2000
      memory: 2048
    backups:
      enabled: true
      repoStorageSize: "16Gi"
      retentionFull: 4
      fullSchedule: "0 1 * * 0"
      incrementalSchedule: "0 1 * * 1-6"

  redis:
    external: false
    clusterSize: 3
    persistence: true
    storageSize: "2Gi"
    resources:
      cpu: 250
      memory: 256
    limits:
      cpu: 500
      memory: 512

  diode:
    enabled: true
    reconciler:
      replicas: 1
    ingester:
      replicas: 1
    auth:
      replicas: 1
    hydra:
      replicas: 1
    config:
      reconciler:
        # autoApplyChangesets: true  # false recommended if using Assurance
        logLevel: INFO

Spec Reference

Top-Level Fields

FieldTypeDefaultDescription
suspendboolfalsePause reconciliation - existing workloads keep running
maintenanceModeboolfalseScale down all app components, keep databases running
labelsmap[string]string-Labels applied to all managed resources
annotationsmap[string]string-Annotations applied to all managed resources
imagePullPolicystringIfNotPresentDefault image pull policy
imagePullSecrets[]string-Pull secrets for private registries
registrystring-Container registry host override for all images
registryNamespacestring-Registry namespace for flat-namespace registries (e.g., airgap). When set alongside registry, repository paths are flattened to {namespace}/{basename}
clusterDnsSuffixstring-Kubernetes cluster DNS suffix (defaults to cluster.local)
reconcileIntervalstringunset (operator falls back to 5m)How often the operator re-checks external state when no Kubernetes events are received. Covers changes that do not produce watch events (PGO secret rotations, wheelhouse uploads). Kubernetes-style duration string (30s, 1m, 5m) or bare seconds.
secretChecksumDebouncestringunset (operator falls back to 30s)Debounce window for embedding external secret resourceVersion into pod template annotations. Prevents PGO housekeeping writes from triggering rolling restarts. Kubernetes-style duration string or bare seconds. Lower values speed up convergence in test environments; raise it for slow-bootstrapping clusters.
backupsboolfalseEnable Velero backups for this cluster. Requires Velero installed in the cluster. This is the cluster-wide Velero switch. It does not control the PostgreSQL backups -- see spec.postgresql.backups.
storageBackendenumpvcWhere NetBox media and script files live. See spec.storageBackend.
extraManifests[]string-Extra Kubernetes manifests to apply beside the managed workloads. See spec.extraManifests.

Each operator-managed workload section (spec.netbox, spec.netbox.worker, spec.copilot, and each spec.diode.<component>) accepts a topologySpreadConstraints array using the standard Kubernetes type. A cluster-wide default lives at spec.replication.topologySpreadConstraints. The operator auto-injects hostname spread for Redis replication and Sentinel; user-set constraints are honored as-is.

spec.replication

Cluster-wide replication and placement settings.

FieldTypeDefaultDescription
topologySpreadConstraints[]TopologySpreadConstraint-Default constraints applied to every operator-managed deployment. A per-component topologySpreadConstraints field replaces this default for that component. The operator injects each deployment's own selector labels into every constraint's labelSelector, so one block covers every workload.
replication:
  topologySpreadConstraints:
    - maxSkew: 1
      topologyKey: kubernetes.io/hostname
      whenUnsatisfiable: ScheduleAnyway

spec.proxy

Egress proxy settings. When set, the operator injects HTTP_PROXY, HTTPS_PROXY, and NO_PROXY into every workload it creates (NetBox, workers, Copilot, Diode, Hydra, migrations, the operator, and the Replicated SDK). When omitted, no proxy is configured. On Embedded Cluster and KOTS installs the proxy is inherited from the install-time proxy flags and shown read-only in the Admin Console; raw Helm installs set it here.

proxy:
  httpProxy: http://proxy.corp:3128
  httpsProxy: http://proxy.corp:3128
  noProxy: .internal.example.com,10.0.0.0/8
FieldTypeDefaultDescription
httpProxystring-HTTP proxy URL (e.g. http://proxy.corp:3128)
httpsProxystring-HTTPS proxy URL. Used for license, S3, and external HTTPS egress.
noProxystring-Comma-separated extra NO_PROXY entries, appended to the cluster-internal defaults the operator always includes

spec.postgresqlProfiles

Named PostgreSQL connection profiles that components can reference by name. This avoids duplicating host, port, and TLS settings across components when they share the same database server.

postgresqlProfiles:
  netbox:
    host: db.example.com
    port: 5432
    username: netbox
    tlsConfig:
      sslmode: verify-full
      keychainCaCertificates: ['pgo']
FieldTypeDefaultDescription
postgresqlProfiles.<name>.hoststring-PostgreSQL hostname
postgresqlProfiles.<name>.portinteger-PostgreSQL port
postgresqlProfiles.<name>.usernamestring-PostgreSQL username
postgresqlProfiles.<name>.tlsConfigobject-TLS configuration (see PostgreSQL TLS)

PostgreSQL Profile tlsConfig

FieldTypeDefaultDescription
sslmodeenumpreferdisable, allow, prefer, require, verify-ca, verify-full
insecureSkipVerifyboolfalseSkip TLS verification
keychainCaCertificates[]string-CA names from tlsKeychain
keychainClientCertificatestring-Client cert name from tlsKeychain

When CA certificates are configured via keychainCaCertificates, libpq verifies the server certificate even with sslmode: require (effectively upgrading it to verify-ca behavior). This is because the operator sets PGSSLROOTCERT when CA certificates are provided. If you need require without verification, omit the CA certificates.

spec.netbox

Required. NetBox application deployment configuration.

FieldTypeDefaultDescription
replicasinteger1Web application replicas
httpPortinteger8080HTTP port
statusPortinteger-Deprecated. Health check port. Ignored since granian in nbe-core 4.5.x.
mediaStorageSizestring10GiMedia PVC size
scriptsStorageSizestring1GiScripts PVC size
migrationTimeoutstring1hMaximum time for the migration Job to run before Kubernetes terminates it. Accepts durations (1h, 30m) or bare seconds (3600).
migrationStatementTimeoutstring15mPer-statement timeout for index reconciliation. Prevents a single slow index creation from consuming the entire job deadline. Accepts durations or bare seconds.
appReadyTimeoutstring5mMaximum time the operator waits for the NetBox app deployment to become ready after each reconcile. Covers database migrations run at pod startup. Accepts durations (5m, 300s) or bare seconds.
storageClassNamestring-Storage class override
storageAccessModeenumReadWriteOnceAccess mode for the media and scripts PVCs: ReadWriteOnce, ReadOnlyMany, ReadWriteMany, or ReadWriteOncePod. Use ReadWriteMany with an RWX-capable storageClassName to spread replicas > 1 across nodes, or move media to S3 via config.storage.
urls[]string-External URLs (configures ingress)
resources.cpuint200CPU request (millicores)
resources.memoryint750Memory request (MiB)
limits.cpuint1000CPU limit (millicores)
limits.memoryint1500Memory limit (MiB)
env[]EnvVar-Environment variables
yamlEnvstring-YAML string of env vars
timeoutsobject-Per-service timeout overrides for the NetBox Ingress and HTTPRoute. See spec.netbox.timeouts.
topologySpreadConstraints[]TopologySpreadConstraint-Pod spread constraints for the NetBox web pods. Replaces spec.replication.topologySpreadConstraints for this workload.

spec.netbox.image

FieldTypeDefaultDescription
registrystringdocker.ioContainer registry
repositorystringnetboxcommunity/netboxImage repository
tagstringv4.6.8Image tag. The default tracks the NetBox version this release ships.
digeststring-Image digest for pinning
pullPolicystringIfNotPresentPull policy
imagePullSecrets[]LocalObjectReference-Pull secrets for this image only. Adds to the cluster-wide spec.imagePullSecrets.

spec.netbox.timeouts

Per-service timeout overrides for NetBox. Each field merges over the matching cluster-wide default in spec.ingress.timeouts or spec.gateway.timeouts. When the section is omitted, the cluster-wide defaults apply unchanged.

FieldTypeDefaultDescription
ingress.connectstring-Time allowed to open a TCP connection to the NetBox pods.
ingress.readstring-Time between successive reads from the NetBox response.
ingress.sendstring-Time between successive writes to the NetBox request.
gateway.requeststring-Maximum time the gateway waits for a complete NetBox response. Gateway API duration, such as 60s or 1m30s.
gateway.backendRequeststring-Maximum time for one request attempt to the NetBox backend.

The same five fields exist on spec.copilot.timeouts, on spec.diode.timeouts.http, and (the three ingress fields only) on spec.diode.timeouts.grpc.

spec.netbox.diodePlugin

NetBox-side deadlines for outbound calls to Diode. Tune these when raising the cluster-wide ingress/gateway timeouts so the app layer does not cap the higher ingress bound.

FieldTypeDefaultDescription
authTimeoutstringruntime 500msTimeout for Hydra token introspection calls from the NetBox plugins.
grpcTimeoutstringruntime 5sTimeout for Diode gRPC calls from the NetBox plugins.

spec.netbox.worker

FieldTypeDefaultDescription
replicasinteger1Worker replicas (0-255). Operator-applied default when unset.
resources.cpuint100CPU request (millicores)
resources.memoryint128Memory request (MiB)
limits.cpuint1000CPU limit (millicores)
limits.memoryint1500Memory limit (MiB)
env[]EnvVar-Environment variables for worker containers. Merged with yamlEnv.
yamlEnvstring-YAML string of env vars (e.g. "FOO: bar\nBAZ: qux")
affinityobject-Pod affinity for worker pods. When omitted, the operator binds each worker to a NetBox pod (kubernetes.io/hostname) only when replicas == 1 and storageAccessMode is unset, ReadWriteOnce, or ReadWriteOncePod, so the worker can mount the same single-node media and scripts PVCs. Set an explicit affinity to override, or affinity: {} to disable it.

spec.netbox.config

FieldTypeDefaultDescription
allowedHosts[]string['*']Django allowed hosts
metricsEnabledboolfalseExpose /metrics endpoint
customPythonConfigstring-Inline custom Python config
customPythonConfigRefConfigMapKeySelector-ConfigMap ref for Python config
secretKeySecretKeySelectorAuto-generatedDjango secret key
emailPasswordSecretKeySelector-Email password
superuserobjectAuto-generatedSuperuser credentials. See spec.netbox.config.superuser.
pluginsobject{}Custom plugins config for installing wheelhouse packages (Python wheels). See spec.netbox.config.plugins.
postgresobjectderivedPostgreSQL connection config. Derived from spec.postgresql when not set. See spec.netbox.config.postgres.
redisobjectderivedRedis connection config. Derived from spec.redis when not set. See spec.netbox.config.redis.
storage.s3.enabledboolfalseEnable S3 media storage
storage.s3.regionNamestringus-east-1AWS region name
storage.s3.bucketNamestring-S3 bucket name
storage.s3.endpointUrlstring-S3 endpoint URL (for non-AWS S3-compatible storage)
storage.s3.accessKeyIdSecretKeySelector-Secret reference for the S3 access key ID
storage.s3.secretAccessKeySecretKeySelector-Secret reference for the S3 secret access key
storage.s3.tlsConfigobject-S3 TLS/mTLS configuration (see S3 TLS)

S3 Storage TLS

The storage.s3.tlsConfig field uses the keychain TLS pattern for custom CA certificates and client certificates (mTLS):

FieldTypeDefaultDescription
tlsConfig.insecureSkipVerifyboolfalseSkip SSL certificate verification
tlsConfig.keychainCaCertificates[]string-CA names from tlsKeychain for server verification
tlsConfig.keychainClientCertificatestring-Client cert name from tlsKeychain for mTLS

spec.netbox.config.superuser

Bring-your-own superuser credentials. When the section is omitted, the operator generates all credentials. When it is set, username, email, and password are required. apiToken is optional.

Each of the four fields is a SecretKeySelector with name, key, and optional.

FieldTypeDefaultDescription
usernameSecretKeySelectorRequired when setSecret reference for the superuser name.
emailSecretKeySelectorRequired when setSecret reference for the superuser email address.
passwordSecretKeySelectorRequired when setSecret reference for the superuser password.
apiTokenSecretKeySelector-Optional, and nothing reads its value. NetBox 4.5 and later issue peppered v2 tokens, which cannot be planted from a plaintext secret, so the bootstrap seeds no token. The field stays accepted so existing resources keep applying.

An apiToken key that does not exist stops NetBox from starting

apiToken is unread, and it is not harmless to set. Naming a key here adds it to the NetBox pod's projected secrets volume from a source that is not marked optional. If the Secret does not carry that key, kubelet fails the whole volume with MountVolume.SetUp failed for volume "secrets" : references non-existent secret key, and the NetBox pod never starts.

The name on apiToken is not consulted. The projected volume carries password and apiToken together, and it sources both from the Secret named by password.name. Point apiToken.key at a key that Secret really holds, or leave the field unset.

The operator reports this as SuperuserSecret=False, with a Warning event, so kubectl describe netboxenterprise names the key before you inspect the pod. See Status & Conditions.

spec.netbox.config.plugins

Custom Python plugin installation from a wheelhouse. Choose one wheelhouse source: s3 or pvc. See Custom Plugins for the full workflow.

FieldTypeDefaultDescription
mediaWheelhousePollIntervalstringruntime 5mHow often the wheelhouse-watcher sidecar checks the media-directory wheelhouse file for a change in modification time or size. Accepts durations (5m, 1h) or bare seconds (300). Applies only when no explicit wheelhouse source is set and a custom Python config is present.
wheelhouse.s3.bucketstring-Bucket holding the wheelhouse archive.
wheelhouse.s3.keystringmedia/wheelhouse.tar.gzObject key of the wheelhouse archive.
wheelhouse.s3.endpointstring-S3 endpoint URL, for a non-AWS store.
wheelhouse.s3.regionstring-S3 region name.
wheelhouse.s3.verifySSLbooltrueVerify the S3 server certificate.
wheelhouse.s3.credentialsSecret.namestring-Secret holding the S3 credentials.
wheelhouse.s3.credentialsSecret.accessKeyIdstring-Key within that Secret for the access key ID.
wheelhouse.s3.credentialsSecret.secretAccessKeystring-Key within that Secret for the secret access key.
wheelhouse.pvc.claimNamestring-Existing PersistentVolumeClaim holding the wheelhouse.
wheelhouse.pvc.createboolfalseCreate the claim rather than adopt an existing one.
wheelhouse.pvc.pathstringwheelhouse.tar.gzPath to the wheelhouse file within the volume.
wheelhouse.pvc.sizestring1GiSize of the claim. Read only when create is true.
wheelhouse.pvc.storageClassNamestring-Storage class for the claim, when the operator creates it.

The operator reports an unreachable source as WheelhouseSourceProbe=False. It records the last-seen content fingerprint on status.wheelhouseFingerprint.

spec.netbox.config.postgres

NetBox's own PostgreSQL connection. The operator derives every field from spec.postgresql when the section is omitted, so set it only for an external database. Host, port, and TLS come from spec.postgresqlProfiles rather than from here.

FieldTypeDefaultDescription
databasestringnetboxDatabase name.
userstringnetboxDatabase user.
passwordSecretKeySelector-Secret reference for the database password.
users[]objectoperator-generatedUsers for the operator to create in an internal PGO database. Each entry has name, databases (a list of database names), and options (raw PostgreSQL user options, such as SUPERUSER). Ignored for an external database.

spec.netbox.config.redis

NetBox's own Redis connection. The operator derives every field from spec.redis when the section is omitted.

FieldTypeDefaultDescription
hoststringderivedRedis hostname.
portinteger6379Redis port.
usernamestring-Redis ACL username (Redis 6.0 and later). An empty string falls back to legacy authentication.
passwordSecretKeySelector-Secret reference for the Redis password.
cachingDatabaseinteger1Redis DB index for the caching connection (0-65535). Set it to 0 for Redis Enterprise, which supports DB index 0 only.
tasksDatabaseinteger0Redis DB index for the tasks (RQ) connection (0-65535). Redis Enterprise supports DB index 0 only.

spec.postgresql

Required. PostgreSQL database configuration.

FieldTypeDefaultDescription
externalboolfalseUse external PostgreSQL
instancesinteger0PGO replica count (internal only). 0 auto-scales to min(nodes, 3).
versionstring18PostgreSQL major version
storageSizestring4GiStorage per instance
storageClassNamestring-Storage class
registrystring-Image registry override
postgresqlProfilestring-Name of a profile from postgresqlProfiles for host, port, and TLS config
resources.cpuint-CPU request (millicores). Optional - when unset, no requests are applied
resources.memoryint-Memory request (MiB). Optional - when unset, no requests are applied
limits.cpuint-CPU limit (millicores). Optional - when unset, no limits are applied
limits.memoryint-Memory limit (MiB). Optional - when unset, no limits are applied
backupsobjectsee belowpgBackRest backup configuration. See spec.postgresql.backups.

spec.postgresql.backups

New in 2.3.0. pgBackRest configuration for the built-in PostgreSQL. The defaults give a default install working disaster recovery with no configuration.

The whole section is ignored when spec.postgresql.external is true. An external database has no operator-managed repository, and its backups are yours to run.

postgresql:
  backups:
    enabled: true
    repoStorageSize: 16Gi
    retentionFull: 4
    fullSchedule: "0 1 * * 0"
    incrementalSchedule: "0 1 * * 1-6"
FieldTypeDefaultDescription
enabledbooltrueWhether pgBackRest runs. Setting this to false leaves the database backed up by nothing at all -- read the warning below.
repoStorageSizestring16GiSize of the pgBackRest repository PVC. Larger than the data volume default, because the repository holds a full backup set plus the WAL archived since it.
repoStorageClassNamestring-Storage class for the repository PVC. Falls back to the PostgreSQL data storage class, then to the cluster default. It must not be a hostPath class: the repository is the only copy of your database in the Velero archive, and Velero cannot read a hostPath volume.
retentionFullinteger4Number of full backup sets pgBackRest keeps. Retention is by count, not by age: the repository PVC has a fixed size, so bounding the sets is what bounds the disk. Expiring a full backup also expires the incrementals and the WAL that depend on it.
fullSchedulestring0 1 * * 0Cron schedule for full backups. The default is Sundays at 01:00. An empty string disables scheduled full backups.
incrementalSchedulestring0 1 * * 1-6Cron schedule for incremental backups. The default is Monday to Saturday at 01:00, which skips the day the full backup runs. PGO refuses to overlap the two.

enabled: false opts out of PostgreSQL disaster recovery

Disabling pgBackRest removes the repository, and the PostgreSQL data volume stays excluded from Velero's filesystem backup. Nothing then backs the database up.

That exclusion is deliberate. A file-by-file copy of a live data directory is a torn copy, and a torn copy that looks restorable is worse than none. So this setting is an opt-out from PostgreSQL disaster recovery, not a choice of a different mechanism.

Disabling it on a running cluster is also not a clean revert. PGO leaves the repository StatefulSet and its PVC in place, and it pauses its own reconciliation of the cluster. The operator reports the pause as PostgresReconciliationPaused=True. Set backups back to enabled to resume.

Raising repoStorageSize is a PVC expansion, so it needs a storage class with allowVolumeExpansion. Embedded Cluster's local provisioner does not have it. Size retentionFull to fit the PVC rather than growing the PVC to fit retention.

See PostgreSQL Backups and Disaster Recovery for the repository layout, the verification commands, and the restore procedure.

spec.storageBackend

Where NetBox media and script files live.

ValueDescription
pvcDefault. A node-local PersistentVolume. Cannot be shared across nodes, so it is single-node only.
externalAn S3-compatible endpoint you provide. Configured under spec.netbox.config.
in-clusterAn object store the operator provisions and manages inside the cluster (Garage). Requires 3 or more nodes — below that, all three replicas can share a node and the operator reports InClusterStorageBelowNodeGate. See In-Cluster Object Storage.
spec:
  storageBackend: in-cluster

Multi-node deployments require external or in-cluster; a node-local volume pins NetBox to the node holding it. Changing this value does not migrate existing media — see Storage Migration.

spec.redis

Required. Redis cache/queue configuration.

FieldTypeDefaultDescription
externalboolfalseUse external Redis
namestringredisInstance name
clusterSizeinteger0Redis replicas. 0 auto-scales based on node count (min(nodes, 3)) -- auto-scaling requires cluster-scoped RBAC. Sentinel is deployed automatically when the effective size is greater than 1.
sentinelMasterNamestring-Sentinel master group name. Required when sentinels is set. Identifies which master group the Sentinels are monitoring (e.g. netbox-redis).
sentinels[]object-Sentinel endpoints for external Redis HA. When set, NetBox uses Redis Sentinel for master discovery. Ignored for operator-managed Redis. See Redis Sentinels.
persistencebooltrueEnable persistence
requireAuthboolfalseRequire authentication
resources.cpuint-CPU request (millicores). Optional - when unset, no requests are applied
resources.memoryint-Memory request (MiB). Optional - when unset, no requests are applied
limits.cpuint-CPU limit (millicores). Optional - when unset, no limits are applied
limits.memoryint-Memory limit (MiB). Optional - when unset, no limits are applied
storageClassNamestring-Storage class
storageSizestring1GiStorage size for Redis PVCs (when persistence is enabled)

The following tuning fields apply only to operator-managed Redis (external: false):

FieldTypeDefaultDescription
aofEnabledbool-Enable AOF (append-only file) persistence. false avoids the OOM restart loop -- a restart does not replay the log to re-fill memory, and RDB snapshots still preserve the NetBox cache. true maximizes write durability. Omit to leave the Redis server default unchanged.
maxMemoryPercentinteger-Cap Redis memory at N% (0-100) of limits.memory, emitted as a maxmemory directive. No-op when limits.memory is unset.
maxMemoryPolicyenum-Key eviction policy applied when maxmemory is reached: noeviction, allkeys-lru, volatile-lru, allkeys-random, volatile-random, volatile-ttl, allkeys-lfu, volatile-lfu. Without a policy, Redis defaults to noeviction (reject writes).
dynamicConfig[]string-Extra Redis config directives appended to the managed ConfigMap. Applied on the next pod roll, not live. Prefer the typed fields above where they cover the need.
additionalConfigstring-Raw Redis config directives appended verbatim after the typed fields (Redis uses the last occurrence, so raw directives take precedence).

spec.redis.sentinels[]

Each entry is a Redis Sentinel endpoint address.

FieldTypeDefaultDescription
hoststringRequiredSentinel hostname
portinteger26379Sentinel port number

spec.redis.tlsConfig

FieldTypeDefaultDescription
insecureSkipVerifyboolfalseSkip TLS verification
keychainCaCertificates[]string-CA names from tlsKeychain
keychainClientCertificatestring-Client cert name from tlsKeychain

spec.copilot

Optional. Private Copilot AI assistant backend. Requires a Private Copilot license entitlement and an LLM API key secret. Disabled by default.

copilot:
  enabled: true
  llmProvider: anthropic
  llmModel: anthropic/claude-sonnet-4-6
  llmApiKeySecret: copilot-llm-api-key
  llmApiKeySecretKey: apiKey
FieldTypeDefaultDescription
enabledboolfalseEnable the Copilot backend and activate the netbox_copilot plugin in NetBox
replicasinteger1Copilot backend replicas
llmProviderenumanthropicanthropic or bedrock
llmModelstringanthropic/claude-sonnet-4-6Provider-prefixed model identifier (e.g. anthropic/claude-sonnet-4-6, bedrock/us.anthropic.claude-sonnet-4-6)
llmApiKeySecretstringcopilot-llm-api-keyKubernetes Secret holding the LLM API key (must exist in the same namespace)
llmApiKeySecretKeystringapiKeyKey within llmApiKeySecret
llmMaxStepsinteger20Maximum LLM reasoning steps per conversation turn
awsRegionstringus-east-2AWS region for Bedrock. Sets AWS_DEFAULT_REGION in the Copilot container.
awsCredentialsSecretstring-Optional Secret with aws_access_key_id and aws_secret_access_key for Bedrock. Omit to use ambient credentials (IRSA, instance profile).
databaseUserstringcopilotPostgreSQL user for the Copilot database
redisDbinteger2Redis database number (NetBox uses 0, Diode uses 1)
netboxAuthCookieNamestringsessionidNetBox session cookie name used for authentication
netboxAuthCacheTtlinteger60TTL in seconds for caching NetBox auth session validation
netboxAuthApiTimeoutinteger5Timeout in seconds for NetBox auth API calls
resources.cpuint100CPU request (millicores)
resources.memoryint256Memory request (MiB)
limits.cpuint1000CPU limit (millicores)
limits.memoryint1024Memory limit (MiB)
imageobject-Image override for the Copilot backend. Same shape as spec.netbox.image: registry, repository, tag, digest, pullPolicy, and imagePullSecrets.
timeoutsobject-Per-service timeout overrides for the Copilot Ingress and HTTPRoute. Same shape as spec.netbox.timeouts. When unset, Copilot falls back to long-lived-connection defaults, which suit a streaming chat response.
topologySpreadConstraints[]TopologySpreadConstraint-Pod spread constraints for the Copilot pods. Replaces spec.replication.topologySpreadConstraints for this workload.

spec.copilot.postgres

Optional external PostgreSQL connection for Copilot. When omitted, Copilot uses the PGO-managed secret {cluster-name}-postgres-pguser-copilot.

copilot:
  postgres:
    databaseUrl:
      name: copilot-postgres-url
      key: DATABASE_URL
    sslMode: verify-full
    keychainCaCertificates:
      - copilot-db-ca
FieldTypeDefaultDescription
databaseUrl.namestringRequiredSecret name containing the full DATABASE_URL URI
databaseUrl.keystringRequiredKey within the secret (e.g. DATABASE_URL)
sslModeenum-disable, allow, prefer, require, verify-ca, verify-full
keychainCaCertificates[]string-CA names from tlsKeychain for verifying the Copilot PostgreSQL server. Required when sslMode is verify-ca or verify-full.
keychainClientCertificatestring-Client certificate name from tlsKeychain, for a server that demands mutual TLS (clientcert=verify-ca or verify-full in its pg_hba.conf).

spec.diode

Optional. Diode data ingestion pipeline.

FieldTypeDefaultDescription
enabledbooltrueEnable Diode
reconciler.replicasinteger1Reconciler replicas
ingester.replicasinteger1Ingester replicas
auth.replicasinteger1Auth replicas
hydra.replicasinteger1Hydra replicas
hydra.autoMigratebooltrueAuto-run Hydra DB migrations
hydra.postgresqlProfilestring-PostgreSQL profile for Hydra's database connection
hydra.databaseNamestringhydraPostgreSQL database name for Hydra
hydra.databaseUserstringhydraPostgreSQL database user for Hydra
timeoutsobject-Per-route timeout overrides for the Diode surfaces. See spec.diode.timeouts.
topologySpreadConstraints[]TopologySpreadConstraint-Default pod spread constraints for every Diode component. Each component can override it with its own field.

Fields on every Diode component

reconciler, ingester, auth, and hydra share one workload shape.

FieldTypeDefaultDescription
enabledbooltrueWhether the operator creates this component's Deployment.
replicasinteger1Replica count.
portintegercomponent-specificService port. hydra uses spec.diode.config.hydra.serve instead.
serviceAccountstringderivedService account name. Auto-generated as {cluster-name}-diode-{component} when unset.
resources.cpu / resources.memoryintcomponent-specificCPU request (millicores) and memory request (MiB).
limits.cpu / limits.memoryintcomponent-specificCPU limit (millicores) and memory limit (MiB).
annotationsmap[string]string-Extra annotations for this component's resources.
labelsmap[string]string-Extra labels for this component's resources.
extraEnvs[]EnvVar-Extra environment variables for this component's container.
imageobject-Image override. Same shape as spec.netbox.image.
topologySpreadConstraints[]TopologySpreadConstraint-Pod spread constraints for this component.

spec.diode.timeouts

FieldTypeDefaultDescription
http.ingress.connect / http.ingress.read / http.ingress.sendstring-Ingress timeouts for the Diode HTTP route.
http.gateway.request / http.gateway.backendRequeststring-Gateway API timeouts for the Diode HTTP route.
grpc.ingress.connect / grpc.ingress.read / grpc.ingress.sendstring-Ingress timeouts for the Diode gRPC route. The gRPC route has no Gateway API timeout fields.

Raising these also means raising the NetBox-side deadlines in spec.netbox.diodePlugin. Otherwise the app layer caps the higher ingress bound.

spec.diode.hydra.secrets

Secret references for Hydra. When the section is omitted, the operator generates the references from the PostgreSQL configuration. Each field is a SecretKeySelector with name, key, and optional.

FieldTypeDefaultDescription
dsnSecretKeySelectoroperator-generatedHydra's database connection DSN.
systemSecretKeySelectoroperator-generatedHydra's system secret, which encrypts stored tokens.
cookieSecretKeySelectoroperator-generatedHydra's cookie secret, which signs session cookies.

spec.diode.config.reconciler

FieldTypeDefaultDescription
autoApplyChangesetsbooltrueAuto-apply change sets to NetBox. The operator sets this to false at runtime when Assurance is licensed; the schema default is true.
logLevelenumINFOINFO, DEBUG, WARN, ERROR
databaseNamestringdiodePostgreSQL database
databaseUserstringdiodePostgreSQL user
migrationEnabledbooltrueRun DB migrations
redisDbinteger0Redis database number
redisStreamDbinteger1Redis stream database
autoApplyProcessorConcurrencyinteger1Number of concurrent auto-apply processors (1-255).
ingestionLogProcessorConcurrencyinteger4Number of concurrent ingestion-log processors (1-255).
rateLimitRpsinteger20Rate limit (req/sec)
rateLimitBurstinteger1Burst allowance for the reconciler rate limiter
rateLimitNetboxRpsinteger20Rate limit for requests against NetBox (req/sec)
rateLimitNetboxBurstinteger1Burst allowance for requests against NetBox
netboxClientIdstringdiode-to-netboxOAuth2 client ID the reconciler uses against NetBox
pluginApiBaseUrlstring-NetBox Diode plugin API base URL. Auto-generated from cluster name and namespace when unset.
sentryDsnstring-Sentry DSN for error tracking
telemetryConfigobject-OpenTelemetry config (see Telemetry config)
postgres.postgresqlProfilestring-PostgreSQL profile for Diode's database connection

spec.diode.config.ingester and spec.diode.config.auth

The ingester and auth components share the same logging, Sentry, and telemetry fields as the reconciler. The ingester additionally has its own Redis stream database.

FieldTypeDefaultDescription
logLevelenumINFOINFO, DEBUG, WARN, ERROR
sentryDsnstring-Sentry DSN for error tracking
telemetryConfigobject-OpenTelemetry config (see Telemetry config)
redisStreamDb (ingester only)integer1Redis stream database number
redisMemoryHighWatermarkPct (ingester only)integer90Redis used_memory/maxmemory percentage at which the ingester rejects ingest with ResourceExhausted (0-100; 0 disables the check). Only meaningful when Redis has a maxmemory cap -- set redis.maxMemoryPercent.

Diode telemetryConfig

OpenTelemetry configuration shared by the reconciler, ingester, and auth components.

FieldTypeDefaultDescription
metricsEnabledboolfalseEnable the Prometheus metrics endpoint
metricsExporterenumprometheusprometheus, otlp, console, none
metricsPortinteger-Port for the metrics endpoint (component-specific default)
traceExporterenumnoneTrace exporter backend
environmentstring-Deployment environment name. When unset, Diode uses its built-in default.

spec.diode.config.hydra

Runtime configuration for the bundled Hydra OIDC server. Every field has a working default, so set these only to fit Hydra into an existing environment.

FieldTypeDefaultDescription
serve.public.hoststring0.0.0.0Bind address for the public API.
serve.public.portinteger4444Public API port.
serve.admin.hoststring0.0.0.0Bind address for the admin API. Read the warning below before you change it.
serve.admin.portinteger4445Admin API port.
serve.tls.allowTerminationFrom[]string10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16IPv4 CIDR ranges whose X-Forwarded-Proto and X-Forwarded-For headers Hydra trusts in place of the real connection. Widen it only to cover a proxy you operate. A range that includes a client lets that client claim any source address and claim that a plaintext request arrived over TLS.
urls.self.issuerstringderivedOIDC issuer URL. Auto-generated from the cluster name and the namespace when unset.
strategies.accessTokenenumjwtAccess token strategy: jwt (stateless) or opaque (stateful). A jwt token cannot be revoked before it expires, so ttl.accessToken is the exposure window for a leaked one. Choose opaque where you need revocation to take effect at once.
strategies.jwt.scopeClaimenumbothFormat of the scope claim in a JWT: list, string, or both.
ttl.accessTokenstring1hAccess token lifetime.
oidc.subjectIdentifiers.supportedTypes[]string['public']Subject identifier types Hydra advertises.

Never expose the Hydra admin API

The admin API creates, edits, and deletes OAuth2 clients, and it has no authentication of its own. Its only protection is that nothing outside the cluster can reach it.

Do not put it behind an Ingress, a Gateway route, a LoadBalancer Service, or a NodePort. Change serve.admin.host and serve.admin.port only to avoid a port collision inside the pod, never to widen where the API is reachable from.

spec.changes

Change Management plugin (netbox_changes) toggle. Enabled by default; only takes effect on an enterprise license. Toggling it triggers the operator to run the required migration.

FieldTypeDefaultDescription
enabledbooltrueEnable or disable Change Management (the netbox_changes plugin). Requires an enterprise license to take effect.

spec.turbobulk

TurboBulk bulk data API plugin. The enabled lever defaults on but only activates on a Premium-tier license.

FieldTypeDefaultDescription
enabledbooltrueEnable or disable the TurboBulk plugin (the user lever). Effective only on Premium-tier licenses.
enableWritesboolfalseEnable the TurboBulk write APIs (bulk load / delete)

spec.plugins

Cross-service plugin enablement.

plugins:
  assetLifecycle:
    enabled: true

spec.plugins.assetLifecycle

Asset Lifecycle Management (netbox_asset_lifecycle). Requires a Premium-tier license and is disabled by default.

FieldTypeDefaultDescription
enabledboolfalseEnable or disable the Asset Lifecycle plugin (the user lever). Effective only on Premium-tier licenses. Cannot be combined with netbox_inventory or netbox_lifecycle.

Toggling this field triggers the operator to run the required migration and restarts the NetBox pods. Disabling retains all Asset Lifecycle tables and data. See Asset Lifecycle Management.

spec.plugins.ndx

NetBox Data Exchange (netbox_ndx), the device-type catalog. Comes with all paid NetBox Enterprise licenses and is enabled by default. New in 2.3.0.

FieldTypeDefaultDescription
enabledbooltrueEnable or disable the NDX plugin (the user lever). Effective only when the license carries the NDX entitlement — the operator activates NDX only when both hold, so on a license without it this field has no effect.

Because the default is true, this field is an opt-out: set it to false to keep NDX off on an entitled license. The API token comes from the license entitlement and has no field here. Enabling it without the entitlement is refused rather than applied — the operator reports NdxReady=False and leaves NetBox running, since the plugin cannot start without its token. Disabling retains all imported catalog data. See NetBox Data Exchange (NDX).

spec.tlsKeychain

Centralized TLS certificate management.

spec.tlsKeychain.caCertificateSecrets[]

FieldTypeDefaultDescription
namestringRequiredLogical name (referenced in tlsConfig)
secretstring-Kubernetes secret name. When omitted, defaults to the value of name at runtime.
keystringca.crtKey within the secret

spec.tlsKeychain.clientCertificateSecrets[]

FieldTypeDefaultDescription
namestringRequiredLogical name
secretstring-Kubernetes secret name. When omitted, defaults to the value of name at runtime.
certKeystringtls.crtKey within the secret holding the client certificate
privateKeystringtls.keyKey within the secret holding the private key

spec.routing

Selects the operator's north/south routing path: Gateway API or Ingress. The resolved mode determines which resources the operator emits -- Gateway API resources (Gateway, HTTPRoute, GRPCRoute) in gateway mode, Ingress objects in ingress mode.

routing:
  mode: auto
FieldTypeDefaultDescription
modeenumautoauto, gateway, or ingress. auto resolves to gateway mode when spec.gateway is enabled and the Gateway API CRDs are installed, and to ingress mode otherwise. gateway and ingress pin the path explicitly.

The routing mode is the master switch; the per-path enabled flags (spec.gateway.enabled, spec.ingress.enabled) still apply. A pinned mode whose path is disabled (for example mode: gateway with spec.gateway.enabled: false) emits nothing and raises a RoutingModeMismatch warning event. In auto mode with spec.gateway enabled but the Gateway API unusable, the operator falls back to ingress mode and raises a GatewayUnavailable warning event.

Embedded Cluster installs pin mode: gateway and serve traffic through the bundled Traefik controller. Helm installs default to auto.

spec.ingress

Cluster-wide Ingress configuration, used when the routing mode resolves to ingress (see spec.routing). When omitted, the operator generates Ingress objects with the default nginx class and no extra annotations.

ingress:
  className: nginx
  timeouts:
    connect: 10s
    read: 60s
    send: 60s
  tls:
    - hosts: [netbox.example.com]
      secretName: netbox-tls
FieldTypeDefaultDescription
enabledbooltrueWhether the operator creates Ingress objects. When false, existing Ingress objects are pruned by orphan cleanup.
classNamestringnginxKubernetes Ingress class name. Maps to spec.ingressClassName on every generated Ingress.
annotationsmap[string]string-Extra annotations merged onto every Ingress object. Values here override the hardcoded nginx-specific defaults when keys collide.
tls[]IngressTLS-TLS termination entries. Each entry maps directly to a Kubernetes IngressTLS object. All unique hosts across entries are used to create IngressRule entries.
timeouts.connectstring-Time allowed to establish a TCP connection to the upstream. Kubernetes-style duration.
timeouts.readstring-Time between successive reads from the upstream response. Kubernetes-style duration.
timeouts.sendstring-Time between successive writes to the upstream request. Kubernetes-style duration.

Proxy timeouts are translated to nginx annotations. Non-nginx Ingress classes log a warning and leave timeouts at the controller defaults. Per-service overrides on spec.copilot.timeouts.ingress, spec.diode.timeouts.http.ingress, and spec.diode.timeouts.grpc.ingress field-merge with the cluster-wide defaults.

spec.gateway

Optional Gateway API configuration, used when the routing mode resolves to gateway (see spec.routing). When omitted or enabled: false, no Gateway API resources are created.

gateway:
  enabled: true
  className: traefik
  listeners:
    - name: http
      port: 80
      protocol: HTTP
FieldTypeDefaultDescription
enabledboolfalseWhether the operator creates Gateway API resources. Opt-in. When true and the routing mode resolves to gateway, the operator creates a Gateway plus the associated HTTPRoute and GRPCRoute objects.
classNamestringtraefikGatewayClass name for the Gateway resource. The default matches the bundled Traefik controller; common values for other controllers: envoy, cilium, istio.
annotationsmap[string]string-Extra annotations merged onto all Gateway API resources.
listeners[]GatewayListener-Gateway listener definitions. Each entry maps to a spec.listeners[] entry on the upstream Gateway type. See Gateway listeners.
timeoutsobject-Cluster-wide HTTPRoute timeout defaults (request, backendRequest) as Gateway API durations (e.g. 60s, 1m30s). Per-service overrides on spec.copilot.timeouts.gateway and spec.diode.timeouts.http.gateway field-merge with these defaults.
maxRequestBodyBytesint26214400Maximum request body (file uploads) in bytes; larger requests are rejected with 413. 0 disables the limit. Enforced through a Traefik Middleware attached to the NetBox, Copilot, and Diode HTTP routes, so it applies only to the bundled Traefik gateway class -- bring-your-own gateways configure this themselves.

spec.gateway.listeners[]

Each entry maps to a spec.listeners[] entry on the upstream Gateway API Gateway type.

FieldTypeDefaultDescription
namestringRequiredListener name, unique within the Gateway
portintegerRequiredPort the listener binds to
protocolstringRequiredListener protocol (e.g. HTTP, HTTPS)
hostnamestring-Virtual hostname to match for protocol types that define this concept
tlsobject-TLS configuration for the listener
allowedRoutesobject-Types of routes that may attach to the listener and the trusted namespaces they may come from

spec.extraCaCertificates

Additional CA certificates to trust system-wide. Added to the system trust store of all NetBox components, merged into every service-specific CA bundle (PostgreSQL, Redis), and set as REQUESTS_CA_BUNDLE so Python HTTP clients (e.g., webhooks, custom scripts) also trust these CAs.

extraCaCertificates:
  - name: internal-ca-secret
    key: ca.crt

Each entry is a Kubernetes SecretKeySelector.

FieldTypeDefaultDescription
namestringRequiredName of the Secret holding the certificate.
keystringRequiredKey within that Secret.
optionalboolfalseWhether the Secret and its key may be absent.

A reference that does not resolve is reported as TlsCaTrust=False with reason CaSecretMissing.

spec.extraManifests

New in 2.3.0. Extra Kubernetes manifests to apply beside the managed workloads.

Each entry is a YAML string, and one entry may hold several documents separated by ---. The operator parses each document into a typed resource, runs it through the same mutation pipeline as the resources it builds itself (canonical labels, registry rewrites, pull secrets), and applies it with the managed workloads.

Ten kinds are supported: Deployment, Job, Secret, ConfigMap, Service, ServiceAccount, Ingress, Role, RoleBinding, and PersistentVolumeClaim. Any other kind is rejected at reconcile time.

Every resource lands in the cluster's own namespace. A metadata.namespace that names a different one is rejected.

This field carries the operator's permissions

The operator applies these manifests with its own service account, and Role and RoleBinding are among the supported kinds. Write access to the NetBoxEnterprise resource therefore grants what the operator can do in that namespace. Treat edit rights on the resource as equivalent to that, and keep them off anyone who should not hold it.

extraManifests:
  - |
    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: site-branding
    data:
      banner: "Production"

spec.replicatedApp

Replicated-specific tuning. These knobs only apply when NetBox Enterprise is installed through Replicated (Embedded Cluster or KOTS).

spec.replicatedApp.licenseFallback

Retry budget for fetching the license from the Replicated SDK at startup. When the SDK is unreachable, the operator retries within this budget.

FieldTypeDefaultDescription
retryIntervalstringruntime 5sDelay between retry attempts. Accepts Kubernetes-style durations (5s) or bare seconds (5).
totalTimeoutstringruntime 30sTotal time budget for the retry loop. Accepts durations (30s, 1m) or bare seconds (30).

From 2.3.0 the operator invents no license when the budget runs out. It serves the last good license from its cache Secret instead. With no cached license either, it blocks reconciliation and reports LicenseHealth=False with reason LicenseUnavailable. Cleanup on delete is never blocked. See License Information.

Next Steps

On this page