Kustomize

If you installed Crunchy Postgres for Kubernetes (CPK) using Kustomize and a kubectl apply command, you can upgrade in most cases as simply as re-running the command after you've pulled in the new changes. For instance, assuming you are using the CPK installation from the Postgres Operator examples repository, you would simply issue the command:

kubectl apply --server-side -k kustomize/install/default

Upgrading from CPK v5.3.x and Below

CPK versions from 5.1.x through 5.3.x include a pgo-upgrade deployment, which is no longer needed. After upgrading to v5.4.x, delete the deployment:

kubectl delete deployment pgo-upgrade

Upgrading from CPK v5.0.x and below

Upgrading from these versions of CPK requires additional steps. Please reference the v5.1.8 Upgrade documentation for more information. Once you have completed the steps to upgrade to CPK v5.1.8, you can continue your upgrade normally.