Note:

Verify WebLogic in Kubernetes (OKE)

Introduction

The tutorials in this workshop assume you have performed the prerequisite tasks detailed in the Introduction section of this workshop. You’ve already created an OKE cluster in the Oracle Cloud and provisioned a WebLogic domain using the WebLogic Kubernetes Operator. If you have not done that yet, please complete Migrating WebLogic Server to Kubernetes workshop prior to starting Tutorial 1. The tutorials also assume you have set up EM in the Oracle Cloud, in a separate VCN.

Estimated time: 5 minutes

Prerequisites

Objectives

Verify Kubernetes services

  1. Click the navigation icon at the top left corner (three bars) in the Oracle Cloud console, drop down the menu, navigate and choose Developer Services > Kubernetes Clusters (OKE).

    Oracle Cloud console, Navigation Menu

  2. Locate the compartment you created the Kubernetes cluster when you performed the prerequisite Migrating WebLogic Server to Kubernetes workshop. Then click the name of the cluster.

    Oracle Cloud console, Compartment

  3. On the Cluster Details page, click the Access Cluster button.

Oracle Cloud console, Cluster

  1. Select Cloud Shell Access, then click Launch Cloud Shell.

Oracle Cloud console, Cluster

  1. Look at the bottom of the page, and you will see a Cloud Shell window and command prompt ready for input.

Oracle Cloud console, Cluster

  1. In the Access Your Cluster page that is still opened at the upper side of the console, locate the textbox with the OCI command, and click Copy.

Oracle Cloud console, Cluster

  1. Paste the command into the Cloud Shell and execute. It configures the Cloud Shell session to work with the cluster.

Oracle Cloud console, Cloud Shell

NOTE: Save the command to a text file on your laptop, and execute it every time when you start a new Cloud Shell session, while performing the tutorials in this workshop.

  1. In the Cloud Shell, run the following command.

    kubectl get svc --all-namespaces
    

The output will be similar to the image below. The namespace of the WebLogic Server services used in the WebLogic workshop is sample-domain1-ns by default.

Oracle Cloud console, Cloud Shell

  1. Within the same command output, locate the LoadBalancer service named treafik-operator in the last row. Note down the External-IP. You will need this value in the next task.

Oracle Cloud console, Cloud Shell

Verify WebLogic Administration Console in a browser

  1. On your computer, open a new browser tab and access the application with the following URL pattern:

    http://<External IP of the Traefik load balancer>/console
    

    Make sure the WebLogic Administration console login page launches in the new browser tab like the image below.

    WLS Admin Console

    NOTE: If you can’t start the application, return to the prerequisite workshop, Migrating WebLogic Server to Kubernetes and validate Lab 1 through Lab 4 were performed.

You may now proceed to the next tutorial.