Upgrading CloudNative-PG 1.22.1

CloudNativePG1.22.1がリリースされたようなのでアップグレード。

主な変更点はこちらの記事を参照。

Upgrading Operator

kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.22/releases/cnpg-1.22.1.yaml

Operatorがアップグレードされると、PostgreSQL Clusterも自動的に再起動される。

アップグレード完了後のステータス。

Instances status
Name       Database Size  Current LSN  Replication role  Status  QoS         Manager Version  Node
----       -------------  -----------  ----------------  ------  ---         ---------------  ----
cnpg161-3  75 MB          4F/DB00BE38  Primary           OK      BestEffort  1.22.1           dok8s-vke1-np2-64a2430886ec
cnpg161-4  75 MB          4F/DB00BE38  Standby (sync)    OK      BestEffort  1.22.1           dok8s-vke1-np2-85ef5c52932d

Upgrading CNPG Client module

curl -sSfL https://github.com/cloudnative-pg/cloudnative-pg/raw/main/hack/install-cnpg-plugin.sh | sudo sh -s -- -b /usr/local/bin

バージョン確認

kubectl-cnpg version
Build: {Version:1.22.1 Commit:c7be872e Date:2024-02-02}

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です