SUSE Multi-Linux Managerプロキシのアップグレード
アップグレードコマンドを実行する前に、ホストオペレーティングシステムを更新する必要があります。ホストオペレーティングシステムを更新すると、mgrpxyツールなどのSUSE Multi-Linux Managerツールも更新されます。
zypperを使用してソフトウェアリポジトリを更新します。zypper refホストオペレーティングシステムに応じて、以下のステップに進みます。
- SL Microなどのトランザクションシステムの場合:
transactional-updateを使用して利用可能な更新を適用します。transactional-update更新が適用されたら、
rebootを実行して再起動します。- SUSE Linux Enterprise Serverの場合:
zypperを使用してインストールされたソフトウェアを更新します。zypper up
podman上で実行されるSUSE Multi-Linux Managerプロキシコンテナは、次のコマンドを使用して更新できます。mgrpxy upgrade podmanまたは、Kubernetesクラスタ上で実行されるプロキシコンテナは、次のコマンドを使用して更新できます。
mgrpxy upgrade kubernetespodman上で、未使用のコンテナイメージをクリーンアップしてディスク容量を解放します。
podman image prune -aOn Kubernetes the image cleanup is handled automatically, or it depends on the Kubernetes distribution. ``
Check for
*.rpmnewand*.rpmsavefiles inside the container:mgrctl exec 'find /etc/ -name "*.rpmnew" -o -name "*.rpmsave"'
When an upgrade includes changes to a default configuration file that has been altered after package installation, instead of overwriting the file, one of these file types is created:
*.rpmnew: contains the new default configuration and leaves your altered file untouched
*.rpmsave: a copy of your altered configuration that has been replaced by the new default fileIf you find any
*.rpmnewor*.rpmsavefiles, examine their content and merge desirable changes.
|
特定のバージョンにアップグレードする際にタグパラメータを指定しない場合、デフォルトで最新バージョンにアップグレードされます。特定のバージョンにアップグレードするには、タグパラメータと目的のイメージタグを指定します。 |
|
特定のタグを使用して特定のコンテナをアップグレードするオプションはありますが、この機能はPTFの適用のみを意図しています。 通常の状況下では、すべてのプロキシコンテナに同じタグを使用して一貫性を確保することを強くお勧めします。 |
Air-gappedインストールでは、まずコンテナのRPMパッケージをアップグレードし、その後mgrpxy upgrade podmanコマンドを実行します。