|
| 1 | +nameOverride: netbox |
| 2 | +clusterDomain: cluster.local |
| 3 | + |
| 4 | +superuser: |
| 5 | + name: admin |
| 6 | + |
| 7 | + existingSecret: netbox-secrets |
| 8 | + |
| 9 | + |
| 10 | +allowedHosts: |
| 11 | + - netbox.${ get .ClusterLabels "management.cattle.io/cluster-display-name" }.${ .ClusterLabels.site }.lsst.org |
| 12 | + |
| 13 | +allowedHostsIncludesPodIP: false |
| 14 | + |
| 15 | +admins: |
| 16 | + |
| 17 | + |
| 18 | +internalIPs: [127.0.0.1] |
| 19 | + |
| 20 | +timeZone: America/Santiago |
| 21 | + |
| 22 | +# Disable persistent volumes to avoid multi-attach issues with ReadWriteOnce storage |
| 23 | +# Media files will be stored in ephemeral storage |
| 24 | +persistence: |
| 25 | + enabled: false |
| 26 | + # storageClass: rook-ceph-block |
| 27 | + # accessMode: ReadWriteOnce |
| 28 | + # size: 10Gi |
| 29 | + # annotations: {} |
| 30 | + |
| 31 | +reportsPersistence: |
| 32 | + enabled: false |
| 33 | + # storageClass: rook-ceph-block |
| 34 | + # accessMode: ReadWriteOnce |
| 35 | + # size: 1Gi |
| 36 | + # annotations: {} |
| 37 | + |
| 38 | +scriptsPersistence: |
| 39 | + enabled: false |
| 40 | + # storageClass: rook-ceph-block |
| 41 | + # accessMode: ReadWriteOnce |
| 42 | + # size: 1Gi |
| 43 | + # annotations: {} |
| 44 | + |
| 45 | +resourcesPreset: medium |
| 46 | +resources: |
| 47 | + requests: |
| 48 | + cpu: 500m |
| 49 | + memory: 1Gi |
| 50 | + limits: |
| 51 | + cpu: 1000m |
| 52 | + memory: 2Gi |
| 53 | + |
| 54 | +## @section Traffic Exposure Parameters |
| 55 | + |
| 56 | +ingress: |
| 57 | + enabled: true |
| 58 | + className: nginx |
| 59 | + annotations: |
| 60 | + cert-manager.io/cluster-issuer: letsencrypt |
| 61 | + nginx.ingress.kubernetes.io/backend-protocol: HTTP |
| 62 | + nginx.ingress.kubernetes.io/client-body-buffer-size: 10m |
| 63 | + nginx.ingress.kubernetes.io/proxy-read-timeout: "60" |
| 64 | + nginx.ingress.kubernetes.io/proxy-send-timeout: "60" |
| 65 | + hosts: |
| 66 | + - host: netbox.${ get .ClusterLabels "management.cattle.io/cluster-display-name" }.${ .ClusterLabels.site }.lsst.org |
| 67 | + paths: |
| 68 | + - / |
| 69 | + tls: |
| 70 | + - secretName: netbox-tls |
| 71 | + hosts: |
| 72 | + - netbox.${ get .ClusterLabels "management.cattle.io/cluster-display-name" }.${ .ClusterLabels.site }.lsst.org |
| 73 | + |
| 74 | +postgresql: |
| 75 | + enabled: true |
| 76 | + auth: |
| 77 | + username: netbox |
| 78 | + database: netbox |
| 79 | + existingSecret: netbox-postgresql |
| 80 | + secretKeys: |
| 81 | + adminPasswordKey: postgres-password |
| 82 | + userPasswordKey: password |
| 83 | + # Use external secret passwords for consistency |
| 84 | + usePasswordFiles: false |
| 85 | + # Ensure PostgreSQL is ready before Netbox starts |
| 86 | + primary: |
| 87 | + persistence: |
| 88 | + enabled: true |
| 89 | + storageClass: rook-ceph-block |
| 90 | + size: 20Gi |
| 91 | + resources: |
| 92 | + requests: |
| 93 | + cpu: 250m |
| 94 | + memory: 512Mi |
| 95 | + limits: |
| 96 | + cpu: 500m |
| 97 | + memory: 1Gi |
| 98 | + # Global PostgreSQL configuration to prevent credential mismatch |
| 99 | + global: |
| 100 | + postgresql: |
| 101 | + auth: |
| 102 | + existingSecret: netbox-postgresql |
| 103 | + secretKeys: |
| 104 | + adminPasswordKey: postgres-password |
| 105 | + userPasswordKey: password |
| 106 | + |
| 107 | +valkey: |
| 108 | + enabled: true |
| 109 | + auth: |
| 110 | + existingSecret: netbox-valkey |
| 111 | + existingSecretPasswordKey: valkey-password |
| 112 | + |
| 113 | +## @section Worker for Netbox parameters |
| 114 | + |
| 115 | +worker: |
| 116 | + enabled: true |
| 117 | + replicaCount: 1 |
| 118 | + resources: |
| 119 | + requests: |
| 120 | + cpu: 500m |
| 121 | + memory: 1Gi |
| 122 | + limits: |
| 123 | + cpu: 1000m |
| 124 | + memory: 2Gi |
| 125 | + |
| 126 | +## @section Cron housekeeping job parameters |
| 127 | + |
| 128 | +housekeeping: |
| 129 | + enabled: true |
| 130 | + schedule: 0 0 * * * |
| 131 | + successfulJobsHistoryLimit: 5 |
| 132 | + failedJobsHistoryLimit: 5 |
| 133 | + resourcesPreset: medium |
| 134 | + resources: |
| 135 | + requests: |
| 136 | + cpu: 500m |
| 137 | + memory: 1Gi |
| 138 | + limits: |
| 139 | + cpu: 1000m |
| 140 | + memory: 2Gi |
| 141 | + |
| 142 | +# Database configuration using external secrets |
| 143 | +extraEnvs: |
| 144 | + - name: DB_WAIT_DEBUG |
| 145 | + value: "1" |
| 146 | + - name: SECRET_KEY |
| 147 | + valueFrom: |
| 148 | + secretKeyRef: |
| 149 | + name: netbox-secrets |
| 150 | + key: secret-key |
| 151 | + |
| 152 | + |
| 153 | +# Plugin configuration |
| 154 | +plugins: |
| 155 | + - slurpit_netbox |
| 156 | + |
| 157 | +pluginsConfig: |
| 158 | + slurpit_netbox: |
| 159 | + # Basic configuration for slurpit_netbox plugin |
| 160 | + # Add specific configuration options as needed |
| 161 | + |
0 commit comments