Chapter 2. Configuring terminal sessions

This procedure describes how to configure your terminal sessions to use configurations to avoid problems as you configure Application Interconnect on different clusters.

The following table shows how you might set up your terminal sessions.

Table 2.1. Terminal sessions

west terminal sessioneast terminal session
 $ kubectl get pods
 $ kubectl get pods

Prerequisites

  • The OpenShift CLI is installed. See the OpenShift CLI documentation for more instructions on how to install oc.
Note

In OpenShift 4.6 and later, you can use the web terminal to perform the following procedure, as described in the web terminal documentation.

Procedure

  1. Start a terminal session to work on the west namespace and set the KUBECONFIG environment variable:

    $ export KUBECONFIG=$HOME/.kube/config-west

    This session is referred to later as the west terminal session.

  2. Start a terminal session to work on the east namespace and set the KUBECONFIG environment variable:

    $ export KUBECONFIG=$HOME/.kube/config-east

    This session is referred to later as the east terminal session.

  3. In each terminal session, log into the OpenShift cluster.