enix / helm-charts

A collection of Helm packages brought to you by Enix Monkeys :monkey_face:
https://charts.enix.io
Apache License 2.0
56 stars 19 forks source link

[netbox] How to upgrade netbox chart ? #26

Open tiagoalves83 opened 4 years ago

tiagoalves83 commented 4 years ago

How to upgrade netbox chart ?

I tried:

helm repo update
helm upgrade netbox-enix enix/netbox

got the following error:

$ helm upgrade netbox-enix enix/netbox
Error: UPGRADE FAILED: cannot patch "netbox-enix-postgresql" with kind StatefulSet: StatefulSet.apps "netbox-enix-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden. && cannot patch "netbox-enix" with kind StatefulSet: StatefulSet.apps "netbox-enix" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden. 
Zempashi commented 4 years ago

Like any helm upgrade, you need to pass in the values you used for creating the release:

helm upgrade netbox-enix enix/netbox --set foo=bar -f values.yaml
# I highly recommand `values files` as parameters on command line are a pain to maintain over release upgrade

You also have a convenient:

helm upgrade netbox-enix enix/netbox --reuse-values

EDIT: As you upgrade failed and reset all values to empty you might need to rollback to recover previous values

qdupuy commented 3 years ago

Hello,

It would be interesting to update netbox to its latest version. Version 3 has just been released