Netbox on your Laptop with Kubernetes!

  • 1 September 2023
  • 7 comments
  • 629 views

Userlevel 7
Badge +22

Hi Everyone,

I know everyone loves documentation and documenting things.. right? Well love might be too strong a word but you must admit it is nice to not have to rely on memory to find things. Also if your boss is tired of you and would like to lock you out of the office then if you have great documentation everybody wins! 😀

Joking aside I long ago realized that my memory was lacking and so the more I write down the better things go later on.

Netbox https://docs.netbox.dev/en/stable/ is a sensational open-source tool that I have used in a number of jobs. There is a great blog post by @mkevenaar on how to run Netbox on Synology here https://kevenaar.name/netbox-how-to-run-it-on-your-synology/

But what about Kubernetes? 

Well the folks over on the GitHub bootc repo https://github.com/bootc/netbox-chart have made it easy for us. 

Today I am going to leverage their helm chart and deploy this in Rancher Desktop in my WSL2 windows laptop environment.  

Open up your ubuntu terminal and create a netbox directory:

 

mkdir netbox

cd netbox

We need to add the helm chart:

helm repo add bootc https://charts.boo.tc

helm repo update

Now we want to make a few changes to the default installation so we will fetch the values file:

helm show values bootc/netbox >values.yaml

vi values.yaml

I want to leverage the default ingress that is provided with Rancher Desktop, i.e. traefik so we will enable ingress in the helm chart:

Change the default false to true in the values.yaml file
 

We will now install the chart using that values file

 

helm install netbox  -n netbox bootc/netbox -f values.yaml

Feel free to change more things, like adding ssl or playing around with other settings.

Looks like everything is running:

All pods are good
​​​​​​

We will also check the state of the ingress:

 

Ingress

Now lets try to go there in our local browser:

 

 

But wait how do I login? I remember admin admin is the default username and password that you must change:

 

 

I am in. Now to do some documentation on a Friday evening? Well only a little:

 

 

I will write more on Netbox in Kubernetes in future posts, like how to upgrade, add ssl, and other changes that can be made


7 comments

Userlevel 7
Badge +6

Very cool @Geoff Burke! Glad to see more Netbox in the wild.

Userlevel 7
Badge +22

yeah it makes me want to go home and start documenting my home network over the long weekend.. on second thought the air show is on this weekend and I hear the Siren’s call from the beach!!

Yes Kubernetes can wait until next week. Come Saturday find me out on the paddle board dodging the US Navy Blue Angel’s F18 Super Hornets flying overhead at our air show listening to cool tunes:

 

 

Userlevel 7
Badge +22

 

Userlevel 7
Badge +20

This is so cool. May deploy this at home for documentation of my homelab.  We already use it at work. 👍

Userlevel 7
Badge +9

Great PoC @Geoff Burke!

Userlevel 7
Badge +6

Great stuff Geoff as always, I see two data services in there as well… 

You know what to do with them…. 

 

Userlevel 7
Badge +22

Great stuff Geoff as always, I see two data services in there as well… 

You know what to do with them…. 

 

That is next on the agenda! The master plan is, install, let it run, have a disaster, pull the mea culpa moment: “I should have had a backup and a plan!”, repentance, install Kasten and then go from there :)

I.e. simulating real life . Joking aside this is also great blueprint territory as well.

 

 

Comment