Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1 KB

README.md

File metadata and controls

39 lines (29 loc) · 1 KB

CSH Netbox

OKD Containers for CSH's Netbox instance, now with CSH SSO!

Upgrading

First, pause rollouts to all netbox deployments in OKD:

kubectl rollout pause deployment/netbox-app -n netbox
kubectl rollout pause deployment/netbox-static -n netbox
kubectl rollout pause deployment/netbox-rqworker -n netbox

Then, try something like:

git -C netbox pull
git add netbox
git commit -m "netbox: bump to $(grep '^VERSION = ' netbox/netbox/netbox/settings.py | awk '{print $3}' | sed "s/'//g")"
git push

When the build finishes, we need to run database migrations:

kubectl create -n netbox -f migrate.yaml

Wait for the job to finish and complete.

When it's finished, you can unpause rollouts:

kubectl rollout resume deployment/netbox-app -n netbox
kubectl rollout resume deployment/netbox-static -n netbox
kubectl rollout resume deployment/netbox-rqworker -n netbox

I think that's it? Sorry if these instructions suck