第 6 章 About the web terminal in the web console
You can launch an embedded command line terminal instance in the OpenShift web console. You must first install the Web Terminal Operator to use the web terminal.
Cluster administrators can access the web terminal in OpenShift Container Platform 4.7 and later.
This terminal instance is preinstalled with common CLI tools for interacting with the cluster, such as oc
, kubectl
,odo
, kn
, tkn
, helm
, kubens
, and kubectx
. It also has the context of the project you are working on and automatically logs you in using your credentials.
Web terminal is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see https://access.redhat.com/support/offerings/techpreview/.
6.1. Installing the web terminal
You can install the web terminal using the Web Terminal Operator listed in the OpenShift Container Platform OperatorHub. When you install the Web Terminal Operator, the custom resource definitions (CRDs) that are required for the command line configuration, such as the DevWorkspace
CRD, are automatically installed. The web console creates the required resources when you open the web terminal.
Prerequisites
-
Access to an OpenShift Container Platform cluster using an account with
cluster-admin
permissions.
Procedure
-
In the Administrator perspective of the web console, navigate to Operators
OperatorHub. -
Use the Filter by keyword box to search for the
Web Terminal
Operator in the catalog, and then click the Web Terminal tile. - Read the brief description about the Operator on the Web Terminal page, and then click Install.
On the Install Operator page, retain the default values for all fields.
- The alpha option in the Update Channel menu enables installation of the latest release of the Web Terminal Operator.
- The All namespaces on the cluster option in the Installation Mode menu enables the Operator to watch and be available to all namespaces in the cluster.
-
The openshift-operators option in the Installed Namespace menu installs the Operator in the default
openshift-operators
namespace. - The Automatic option in the Approval Strategy menu ensures that the future upgrades to the Operator are handled automatically by the Operator Lifecycle Manager.
- Click Install.
- In the Installed Operators page, click the View operator to verify that the Operator is listed on the Installed Operators page.
- After the Operator is installed, refresh your page to see the command line terminal icon on the upper right of the console.