Import WebSphere Application Server Network Deployment cells

Importing an existing WebSphere® Application Server Network Deployment cell creates a WAS-ND-Cell Kubernetes custom resource to represent the cell. Application Navigator automatically discovers enterprise applications that are deployed on the cell and creates WAS-Traditional-App Kubernetes custom resources to represent those applications. Application Navigator periodically polls the cell to keep the state of the WAS-ND-Cell resources and WAS-Traditional-App resources synchronized with the cell.

About this task

You can import an existing WebSphere Application Server Network Deployment cell into IBM Application Navigator to establish visibility and access to the Network Deployment cell. A cell can be imported into Application Navigator with the “WAS ND Cells” page in Application Navigator or the Kubernetes kubectl command.

Procedure

Import the WebSphere Application Server Network Deployment cell by using the “WAS ND Cells” page

  1. Open the WebSphere Application Server Network Deployment cell page and launch create dialog.

    Click the WAS ND Cells menu item to open the cell view page.

    Menu item to click on the cell view page

  2. Enter details and create the cell.

    1. Under the General details tab, enter a name for the cell in the Name field.

      This name is unique in the specified namespace on your Kubernetes cluster. Then, click Create WAS ND Cell to launch the new cell dialog.

      Page to create the WAS ND Cell

    2. Click Endpoints and enter your host name, and adjust any port values (defaults are provided).

      Adjust the port number in the console URL to match your cell configuration. Do the same for your SOAP port.

      Page to specify endpoints

    3. Click Credentials and enter a Kubernetes secret name, user name, and password to log in to your cell so that application navigator can track cell status.

      • Click Credentials.
      • In the Credentials field, select whether you need to create a secret or whether you already have a secret.
      • For the Credential name field, enter the Kubernetes secret name.
      • Enter your username and password so that you can log in to your cell.
      • Click Create to create your credentials secret.

      Page to set up your credentials

    4. Click the Create button to create your credentials secret.

      Attention: You can create a new Kubernetes secret or choose an existing one. For a new one, the user name and password you specify is stored as base 64 encoded values in the secret.

  3. Optional: Inspect the cell.

    1. Click cell name to see the detail view.

      Page to click cell name

    2. Use the detail view to see cell details.

      Page with detail view of the cell

Import the WebSphere Application Server Network Deployment cell by using the Kubernetes command-line tool

  1. Create the WebSphere Application Server Network Deployment cell resource.
    1. All fields that are shown are required.
    2. Credentials are a Kubernetes secret in the same namespace.
    3. Interval is the controller polling interval for syncing cells with Kubernetes resources.
    4. Create the cell.yaml file:

      apiVersion: kappnav.io/v1beta1
      kind: WAS-ND-Cell
      metadata:
         name: prism-testcell1
         namespace: default
      spec:
         console_url: https://prism-wasnd-dmgr.rtp.raleigh.ibm.com:9043/ibm/console
         credentials: prism-testcell1-secret
         host: prism-wasnd-dmgr.rtp.raleigh.ibm.com
         interval: 30
         soap_port: 8879
      
    5. Create the resource with the following command:

      kubectl create -f cell.yaml
      
  2. Create the secret for the cell credentials.
    1. The user name and password fields must be base 64 encoded.
    2. The secret must be in the same namespace as the corresponding cell.
    3. Create the secret.yaml file.

      apiVersion: v1
      data:
         password: dGVzdHVzZXJwd2Q=
         username: dGVzdHVzZXI=
      kind: Secret
      metadata:
         name: prism-testcell1-secret
         namespace: default
      
    4. Create the resource with the following command:

      kubectl create -f secret.yaml
      
  3. Inspect twas-apps resources.

    Use the following commands to see your cell and its secret in the yaml format:

    kubectl get twas-cell prism-testcell1 -o yaml
    kubectl get twas-apps -o yaml
    kubectl get secret prism-testcell1-secret -o yaml
    

Results

You get a WAS-ND-Cell Kubernetes resource that represents your WebSphere Application Server Network Deployment cell and one WAS-Traditional-App Kubernetes resource for each enterprise application deployed to that cell.