13.1 WLSTを使用したOAMへの接続
WLSTを使用してOracle Access Management (OAM)ドメインを管理するには、ヘルパー・ポッドを使用する必要があります。
- 次を実行して、ヘルパー・ポッドが存在するかどうかを確認します:
例:kubectl get pods -n <domain_namespace> | grep helper
出力は次のようになります。kubectl get pods -n oamns | grep helper
ヘルパー・ポッドが存在しない場合は、次を実行します:helper 1/1 Running 0 26h
- OAMコンテナ・イメージにOracle Container Registryまたは独自のコンテナ・レジストリを使用する場合:
例:kubectl run --image=<image_name-from-registry>:<tag> \ --image-pull-policy="IfNotPresent" \ --overrides='{"apiVersion": "v1", "spec":{"imagePullSecrets": [{"name": "orclcred"}]}}' \ helper -n <domain_namespace> \ -- sleep infinity
kubectl run --image=container-registry.oracle.com/middleware/oam_cpu:14.1.2.1.0-jdk17-ol8-<YYMMDD> \ --image-pull-policy="IfNotPresent" \ --overrides='{"apiVersion": "v1","spec":{"imagePullSecrets": [{"name": "orclcred"}]}}' \ helper -n oamns \ -- sleep infinity
- コンテナ・レジストリを使用せずに、各ワーカー・ノードにイメージをロードしている場合は、次のコマンドを実行します:
例:kubectl run helper --image <image>:<tag> -n oamns -- sleep infinity
出力は次のようになります:kubectl run helper --image oracle/oam_cpu:14.1.2.1-jdk17-ol8-<YYDDMM> -n oamns -- sleep infinity
pod/helper created
- OAMコンテナ・イメージにOracle Container Registryまたは独自のコンテナ・レジストリを使用する場合:
- 次のコマンドを実行して、ヘルパー・ポッド内でBashシェルを起動します:
例:kubectl exec -it helper -n <domain_namespace> -- /bin/bash
これにより、実行中のヘルパー・ポッド内のBashシェルに移動します:kubectl exec -it helper -n oamns -- /bin/bash
[oracle@helper ~]$
- ヘルパー・ポッド内で、次のコマンドを使用してWLSTに接続します:
cd $ORACLE_HOME/oracle_common/common/bin
出力は次のようになります:./wlst.sh
Initializing WebLogic Scripting Tool (WLST) ... Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away. Welcome to WebLogic Server Administration Scripting Shell Type help() for help on available commands wls:/offline>
- 管理サーバーのt3にアクセスするには、次のように接続します:
出力は次のようになります:connect('weblogic','<password>','t3://accessdomain-adminserver:7001')
または、OAMクラスタ・サービスのt3にアクセスするには、次のように接続します:Connecting to t3://accessdomain-adminserver:7001 with userid weblogic ... Successfully connected to Admin Server "AdminServer" that belongs to domain "accessdomain". Warning: An insecure protocol was used to connect to the server. To ensure on-the-wire security, the SSL port or Admin port should be used instead. wls:/accessdomain/serverConfig/>
出力は次のようになります:connect('weblogic','<password>','t3://accessdomain-cluster-oam-cluster:14100')
Connecting to t3://accessdomain-cluster-oam-cluster:14100 with userid weblogic ... Successfully connected to managed Server "oam_server1" that belongs to domain "accessdomain". Warning: An insecure protocol was used to connect to the server. To ensure on-the-wire security, the SSL port or Admin port should be used instead. wls:/accessdomain/serverConfig/>