プロキシのアップグレード

Before running the upgrade command, it is required to upgrade the mgrpxy tool first.

プロシージャ: プロキシのアップグレード
  1. zypperを使用してソフトウェアリポジトリを更新します。

    zypper ref
  2. 利用可能な更新を適用します。

    1. SLE Microの場合:

      transactional-update

      更新が適用されたら、rebootを実行して再起動します。

    2. SUSE Linux Enterprise Serverの場合:

      zypper up
  3. podman上で実行されるSUSE Manager 5.0プロキシコンテナは、次のコマンドを使用して更新できます。

    mgrpxy upgrade podman
  4. または、Kubernetesクラスタ上で実行されるプロキシコンテナは、次のコマンドを使用して更新できます。

    mgrpxy upgrade kubernetes
  5. podman上で、未使用のコンテナイメージをクリーンアップしてディスク容量を解放します。

    podman image prune -a

    On Kubernetes the image cleanup is handled automatically, or it depends on the Kubernetes distribution.

  6. Check for *.rpmnew and *.rpmsave files 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 file

  7. If you find any *.rpmnew or *.rpmsave files, examine their content and merge desirable changes.

特定のバージョンにアップグレードする際にタグパラメータを指定しない場合、デフォルトで最新バージョンにアップグレードされます。特定のバージョンにアップグレードするには、タグパラメータと目的のイメージタグを指定します。

特定のタグを使用して特定のコンテナをアップグレードするオプションはありますが、この機能はPTFの適用のみを意図しています。通常の状況下では、すべてのプロキシコンテナに同じタグを使用して一貫性を確保することを強くお勧めします。

Air-gappedインストールでは、まずコンテナのRPMパッケージをアップグレードし、その後mgrpxy upgrade podmanコマンドを実行します。