Preserve data and explicit values
- Read the target release notes and download its chart plus
SHA256SUMS. - Back up both PostgreSQL databases as one logical installation.
- Keep your production values file outside the release archive and review it against
helm show values. - Upgrade the server chart and collector chart independently.
Upgrade the server chart
Download and verify the target chart
Shell
VERSION=<TARGET_VERSION>
curl -fLO https://github.com/qwerty-iot/pcapillary-releases/releases/download/v$VERSION/pcapillary-$VERSION.tgz
curl -fLO https://github.com/qwerty-iot/pcapillary-releases/releases/download/v$VERSION/SHA256SUMS
grep "pcapillary-$VERSION.tgz" SHA256SUMS | sha256sum --check -
helm show values ./pcapillary-$VERSION.tgz > values-$VERSION.defaults.yamlRecord the current release
Shell
helm list -n pcapillary
helm get values pcapillary -n pcapillary -o yaml > values-current.yaml
kubectl -n pcapillary get podsApply the reviewed values
Shell
helm upgrade pcapillary ./pcapillary-$VERSION.tgz \
--namespace pcapillary \
--values pcapillary-values.yaml \
--wait --timeout 10m
kubectl -n pcapillary get pods
helm list -n pcapillaryVerify the application
Sign in, check Administration health, confirm collectors return online, and run a short test capture. Do not use a collector software upgrade as a reason to create a new collector identity.