7.1.8 WLST OIGドメインのデプロイ
domain.yamlを使用してOracle Identity Governance (OIG)ドメインをデプロイします。
- 次のコマンドを実行して、OIGドメインをデプロイします:
例:kubectl apply -f $WORKDIR/kubernetes/create-oim-domain/domain-home-on-pv/output/weblogic-domains/<domain_uid>/domain.yaml
出力は次のようになります:kubectl apply -f $WORKDIR/kubernetes/create-oim-domain/domain-home-on-pv/output/weblogic-domains/governancedomain/domain.yamldomain.weblogic.oracle/governancedomain unchanged cluster.weblogic.oracle/governancedomain-oim-cluster created cluster.weblogic.oracle/governancedomain-soa-cluster created - ドメインの作成が実行されている間、次のコマンドを実行して進行状況をモニターできます:
kubectl get pods -n <domain_namespace> -w例:ノート:
-wフラグを使用すると、変更時にポッドのステータスを監視できます。
出力は最初次のようになります:kubectl get pods -n oigns -wNAME READY STATUS RESTARTS AGE governancedomain-create-fmw-infra-sample-domain-job-8cww8 0/1 Completed 0 27m governancedomain-introspector-rctsv 1/1 Running 0 6s helper 1/1 Running 0 3h30mintrospectorポッドが最初に表示されます。数分後、管理サーバーとSOAサーバーの両方が起動します。起動すると、ポッドのノート:
すべてのポッドが起動されるまで数分かかります。ポッドのSTATUSが0/1の場合、ポッドは起動していますが、それに関連付けられたOIGサーバーは現在起動中です。ポッドの起動中に、次のコマンドを実行して、ポッド・ログの起動ステータスを確認できます:
例:kubectl logs <pod> -n <domain_namespace>kubectl logs governancedomain-adminserver -n oignsSTATUSはRunningになり、READY=1/1になります:NAME READY STATUS RESTARTS AGE/ governancedomain-adminserver 1/1 Running 0 7m30s governancedomain-create-fmw-infra-sample-domain-job-8cww8 0/1 Completed 0 35m governancedomain-soa-server1 1/1 Running 0 4m helper 1/1 Running 0 3h38m - 次のコマンドを使用して、クラスタを確認します:
例:kubectl get cluster -n <domain_namespace>
出力は次のようになります:kubectl get cluster -n oignsNAME AGE governancedomain-oim-cluster 9m governancedomain-soa-cluster 9m - 次のコマンドを使用して、OIMサーバーを起動します:
例:kubectl patch cluster -n <domain_namespace> <OIMClusterName> --type=merge -p '{"spec":{"replicas":<initialManagedServerReplicas>}}'
出力は次のようになります:kubectl patch cluster -n oigns governancedomain-oim-cluster --type=merge -p '{"spec":{"replicas":1}}'
次のコマンドを実行して、OIGポッドのステータスを表示します:cluster.weblogic.oracle/governancedomain-oim-cluster patched
例:kubectl get pods -n <domain_namespace> -w
出力は最初次のようになります:kubectl get pods -n oigns -wNAME READY STATUS RESTARTS AGE governancedomain-adminserver 1/1 Running 0 7m30s governancedomain-create-fmw-infra-sample-domain-job-8cww8 0/1 Completed 0 35m governancedomain-oim-server1 1/1 Running 0 4m25s governancedomain-soa-server1 1/1 Running 0 4m helper 1/1 Running 0 3h38mノート:
governancedomain-oim-server1ポッドのSTATUSが1/1になるまで数分かかります。ポッドの起動中に、次のコマンドを実行して、ポッド・ログの起動ステータスを確認できます:kubectl logs governancedomain-oim-server1 -n oigns