6.2 アップグレードの実行
既存のOAMおよびOARMインストールを最新バージョンにアップグレードします。
- インストール・ファイルをダウンロードしたインストール・ホストで、
$WORKDIR/oaaimages/oaa-install
ディレクトリに移動します:cd $WORKDIR/oaaimages/oaa-install
- 次のように
installManagementContainer.sh
スクリプトを実行します:./installManagementContainer.sh -t ./<oaa-image>.tar
これにより、インストール済のoaamgmtチャートがアップグレードされます。アップグレードの進行中、様々な質問に回答して特定のタスクを実行するように求められます。次の表に、回答を求められる質問または実行を求められるタスクの一部について概説します:
出力 アクション Version check failed for podman, would you like to use docker instead? [Y/N]:
「インストール・ホストの要件」に示されているように、このメッセージは、podmanがインストール・ホストにインストールされていない場合に表示されます。必要なバージョンのpodmanがない場合は、「 Y
」と回答してDockerの使用を選択します。Login into container-registry.oracle.com from browser and navigate to the location of each of the supporting images. On the right-hand side, select the Language from the drop-down menu and click Continue. Read the Oracle Standard Terms and Restrictions and click Accept to agree.
Finally, use 'podman login' to store the credentials locally. Login successful? [Y/N]:
ノート:
Dockerを使用している場合は、前述の出力にdocker login
と表示されます。- ブラウザを起動し、https://container-registry.oracle.comにアクセスします。資格証明を使用してサインインします。「データベース」、「InstantClient」の順に移動します。右側のドロップダウン・メニューから「言語」を選択し、「続行」をクリックします。オラクル社標準の条件および規制を読み、「承認」をクリックして同意します。
- podmanを使用するかDockerを使用するかに応じて、
podman login
またはdocker login
を使用してcontainer-registry.oracle.com
にログインし、プロンプトが表示されたら資格証明を入力します:
または:podman login container-registry.oracle.com
docker login container-registry.oracle.com
Use 'podman login' to login into your private registry if you have not done so previously.Login successful? [Y/N]:
ノート:
Dockerを使用している場合は、前述の出力にdocker login
と表示されますイメージを格納するプライベート・コンテナ・イメージ・レジストリ(CIR)でログインが必要な場合は、 podman login
またはdocker login
を使用してCIRにログインし、プロンプトが表示されたら資格証明を入力します:
または:podman login <container-registry.example.com>
docker login <container-registry.example.com>
ノート:
アップグレード中に表示されるプロンプトのほとんどは字義どおりなので、前述の表にすべてのプロンプトの完全なリストは含まれていません。 - 管理コンテナのインストールが完了すると、次のような出力が表示されます:
Release "oaamgmt" has been upgraded. Happy Helming! NAME: oaamgmt LAST DEPLOYED: <DATE> NAMESPACE: oaans STATUS: deployed REVISION: 2 TEST SUITE: None Waiting 15 secs for OAA mgmt deployment to start... Executing 'kubectl get pods -n oaans | grep oaamgmt-oaa-mgmt- '... oaamgmt-oaa-mgmt-6f4c9cd56f-std6l 0/1 ContainerCreating 0 15s oaamgmt-oaa-mgmt-bf6d5c88-29lrn 1/1 Running 0 4h42m Waiting 15 secs for OAA mgmt rollout to complete... Executing 'kubectl get pods -n oaans | grep oaamgmt-oaa-mgmt- '... oaamgmt-oaa-mgmt-6f4c9cd56f-std6l 0/1 ContainerCreating 0 31s oaamgmt-oaa-mgmt-bf6d5c88-29lrn 1/1 Running 0 4h42m Waiting 15 secs for OAA mgmt rollout to complete... Executing 'kubectl get pods -n oaans | grep oaamgmt-oaa-mgmt- '... oaamgmt-oaa-mgmt-6f4c9cd56f-std6l 1/1 Running 0 46s oaamgmt-oaa-mgmt-bf6d5c88-29lrn 1/1 Terminating 0 4h42m Waiting 15 secs for OAA mgmt rollout to complete... Executing 'kubectl get pods -n oaans | grep oaamgmt-oaa-mgmt- '... oaamgmt-oaa-mgmt-6f4c9cd56f-std6l 1/1 Running 0 61s oaamgmt-oaa-mgmt-bf6d5c88-29lrn 1/1 Terminating 0 4h43m Waiting 15 secs for OAA mgmt rollout to complete... Executing 'kubectl get pods -n oaans | grep oaamgmt-oaa-mgmt- '... oaamgmt-oaa-mgmt-6f4c9cd56f-std6l 1/1 Running 0 76s oaamgmt-oaa-mgmt-bf6d5c88-29lrn 1/1 Terminating 0 4h43m Waiting 15 secs for OAA mgmt rollout to complete... File /u01/oracle/scripts/settings/installOAA.properties already exists, copying file to /u01/oracle/scripts/settings/installOAA.properties.<DATE> Copying OAA properties file to oaans/oaamgmt-oaa-mgmt-6f4c9cd56f-std6l:/u01/oracle/scripts/settings Use command 'kubectl exec -n oaans -ti oaamgmt-oaa-mgmt-6f4c9cd56f-std6l -- /bin/bash' to get a shell to the OAA mgmt pod. From pod shell, use command 'kubectl get pods' to verify communication with the cluster. Continue OAA installation from the OAA mgmt pod. OAA management installation complete.
- 出力に従って、新しいOAA管理ポッドに接続します。次に例を示します:
これにより、OAA管理ポッド内のBashシェル内に移動します:kubectl exec -n oaans -ti oaamgmt-oaa-mgmt-6f4c9cd56f-std6l -- /bin/bash
[oracle@oaamgmt-oaa-mgmt-6f4c9cd56f-std6l /]$
- OAA管理ポッド内でアップグレードを実行します:
[oracle@oaamgmt-oaa-mgmt-6f4c9cd56f-std6l /]$ cd ~ [oracle@oaamgmt-oaa-mgmt-6f4c9cd56f-std6l ~]$ ./OAA.sh -f installOAA.properties
ノート:
これにより、<NFS_CONFIG_PATH>/installOAA.properties
ファイルが使用されます。 - アップグレードが完了すると、アップグレードが成功したことと、デプロイメントの詳細が画面に出力されます。
- 次のコマンドを実行して、すべてのポッドが実行されていることを確認します:
たとえば:kubectl get pods -n <namespace>
出力は次のようになります。kubectl get pods -n oaans
NAME READY STATUS RESTARTS AGE oaainstall-customfactor-b5cf55778-rwg5l 1/1 Running 0 6m29s oaainstall-email-65dc5f679-6xtmd 1/1 Running 0 6m29s oaainstall-fido-5b46884c68-q9dxp 1/1 Running 0 6m29s oaainstall-oaa-65779f845b-b9g6c 1/1 Running 0 6m29s oaainstall-oaa-admin-ui-6689c9d4cd-jhfzx 1/1 Running 0 6m29s oaainstall-oaa-kba-6b8c4cfb-x2xsm 1/1 Running 0 6m28s oaainstall-oaa-policy-7997547c98-8jl4n 1/1 Running 0 6m28s oaainstall-push-58b478c4f9-fx95n 1/1 Running 0 6m28s oaainstall-risk-68bf8b75b7-gg99q 1/1 Running 0 6m28s oaainstall-risk-cc-6f669d5c5c-sfhfx 1/1 Running 0 6m28s oaainstall-sms-786d684994-lktfz 1/1 Running 0 6m28s oaainstall-spui-94f6f5f9b-pmhc2 1/1 Running 0 6m28s oaainstall-totp-7759f4598d-8rqwv 1/1 Running 0 6m27s oaainstall-yotp-5f865df96-c5x52 1/1 Running 0 6m27s oaamgmt-oaa-mgmt-859d65684f-jq84f 1/1 Running 0 48m oaainstall-riskdb-6f57c69b-dtmrd 1/1 Running 0 50m