Upgrade the monitoring service
If you’ve installed the monitoring service using Helm, you can use Helm to upgrade it as well.
Prerequisites
The monitoring service must already be installed.
Upgrade
Follow the steps in this section to upgrade the monitoring service component using Helm.
Update your Helm repos:
helm repo update
Retrieve all custom values you used during install. Enter the following
helm get values
command to generate a YAML file, adjusting the value of the<namespace>
parameter to match your environment:helm get values --namespace <namespace> px-monitor -o yaml > values.yaml
Delete the post-install hook job. Enter the following
kubectl delete job
command, adjusting the value of the<namespace>
parameter to match your environment:kubectl -n <namespace> delete job pxcentral-monitor-post-install-setup
Remove the
pxcentral-prometheus-operator
deployment. Enter the followingkubectl delete deployment
command, adjusting the value of the<namespace>
parameter to match your environment:kubectl -n <namespace> delete deployment pxcentral-prometheus-operator
Upgrade the monitoring service component. Run the following
helm upgrade
command, using the-f
flag to pass the customvalues.yaml
file you generated above and adjusting the value of the<namespace>
parameter to match your environment:helm upgrade px-monitor portworx/px-monitor --namespace <namespace> -f values.yaml