A solution to deploy a Netbox environment on a Kubernetes cluster.
This deploy do not create a PostgreSQL database so you need to deploy a database separately.
Clone this repo
$ git clone https://github.com/ambrisolla/k8s-netbox.git
A simple configuration was created to provided LDAP authentication. Change netbox-configmap.yml to put your own information about authentication. LDAP bind password needs to be changed in netbox-secrets.yml file:
# Settings to LDAP auth
LDAP_SERVER: "brisa.io"
LDAP_DN: "DC=brisa,DC=io"
LDAP_BIND_DN: "CN=admin,DC=brisa,DC=io"
Edit netbox-secret.yml with your own passwords:
apiVersion: v1
data:
LDAP_BIND_PASSWORD: aGV5d2hhdHN1cA== # ldap bind password
SUPERUSER_PASSWORD: aGV5d2hhdHN1cA== # netbox admin password
DB_PASSWORD: aGV5d2hhdHN1cA== # database password
kind: Secret
metadata:
name: netbox
namespace: netbox
Change host value in netbox-ingress.yml:
spec:
ingressClassName: nginx
rules:
- host: "muzel.io" ## change here with your own domain
http:
paths:
- backend:
Create a namespace called "netbox":
$ kubectl create ns netbox
Apply Kubernetes resource configurarion:
$ kubectl apply -f .