This commit is contained in:
2026-03-23 21:21:36 +00:00
parent 913cceb120
commit 48740f1da0
2 changed files with 28 additions and 0 deletions

View File

@@ -35,6 +35,23 @@ spec:
- containerPort: 8080
name: http
env:
- name: SUPERUSER_NAME
valueFrom:
secretKeyRef:
name: netbox-superuser
key: username
- name: SUPERUSER_EMAIL
valueFrom:
secretKeyRef:
name: netbox-superuser
key: email
- name: SUPERUSER_PASSWORD
valueFrom:
secretKeyRef:
name: netbox-superuser
key: password
- name: DB_NAME
value: netbox
- name: DB_HOST

View File

@@ -17,3 +17,14 @@ stringData:
username: netbox
user.pw: supersecure-netbox-password
root.pw: secure-root-pw
---
apiVersion: v1
kind: Secret
metadata:
name: netbox-superuser
namespace: netbox
type: Opaque
stringData:
username: admin
email: admin@example.com
password: 4IsTheMindKiller