13.1 WLSTを使用したOAMへの接続

WLSTを使用してOracle Access Management (OAM)ドメインを管理するには、ヘルパー・ポッドを使用する必要があります。

  1. 次を実行して、ヘルパー・ポッドが存在するかどうかを確認します:
    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
      
  2. 次のコマンドを実行して、ヘルパー・ポッド内でBashシェルを起動します:
    kubectl exec -it helper -n <domain_namespace> -- /bin/bash
    
    例:
    kubectl exec -it helper -n oamns -- /bin/bash
    
    これにより、実行中のヘルパー・ポッド内のBashシェルに移動します:
    [oracle@helper ~]$
  3. ヘルパー・ポッド内で、次のコマンドを使用して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>
    
  4. 管理サーバーのt3にアクセスするには、次のように接続します:
    connect('weblogic','<password>','t3://accessdomain-adminserver:7001')
    
    出力は次のようになります:
    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/>
    
    または、OAMクラスタ・サービスのt3にアクセスするには、次のように接続します:
    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/>