Preserve data and explicit values
- Read the target release notes and download the server and collector charts plus
SHA256SUMS. - Back up both PostgreSQL databases as one logical installation.
- Keep
pcapillary-values.yamlandcollector-values.yamloutside the release archives and review them againsthelm 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/pcapillary-collector-$VERSION.tgz
curl -fLO https://github.com/qwerty-iot/pcapillary-releases/releases/download/v$VERSION/SHA256SUMS
grep "pcapillary-$VERSION.tgz" SHA256SUMS | sha256sum --check -
grep "pcapillary-collector-$VERSION.tgz" SHA256SUMS | sha256sum --check -
helm show values ./pcapillary-$VERSION.tgz > pcapillary-$VERSION.defaults.yaml
helm show values ./pcapillary-collector-$VERSION.tgz > collector-$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 pcapillaryUpgrade the collector chart with its saved values
Shell
helm upgrade pcapillary-collector ./pcapillary-collector-$VERSION.tgz \
--namespace pcapillary \
--values collector-values.yaml \
--wait --timeout 10m
kubectl -n pcapillary rollout status daemonset/pcapillary-collectorVerify the application
Sign in, check Administration health, confirm the platform version in the footer, confirm collector versions and online state, and run a short test capture. Do not use a collector software upgrade as a reason to create a new collector identity.