1.4. Visual Web Terminal
The Visual Web Terminal is a tech preview feature. You can use the Visual Web Terminal to run many commands across your cluster. Run commands and get outputs without leaving the entire console. You can run multiple commands, similar to what you can do in a standard terminal.
With Visual Web Terminal, commands that return cluster resource data are displayed visually in interactive tabular format, rather than plain text that is displayed in a standard terminal. You can see the data, click on a row, and then see more details about that resource.
Notes:
The information that is provided in the Visual Web Terminal is limited by the permissions of the user. When you run a command, only the items that you have permission to view are displayed.
If there are over ten sessions that are running at the same time, there might be a slower response time when running commands.
The Visual Web Terminal connects to the cloud that you are already logged into with the hub cluster console.
1.4.1. Starting a session 复制链接链接已复制到粘贴板!
You can access the Visual Web Terminal by completing the following steps:
- Log in to your console.
- From the console Header, select the Visual Web Terminal icon.
- Choose to open in a new tab or open in a current tab.
-
Start running commands in the input field. For example, you can start running any
ocorkubectlcommands and get a visual output. -
Optional: Select the
getting startedcommand to pull up the About page and more, or type the command in the input field. -
Optional: You can change your default namespace. Click
@defaultin the status bar at the bottom of the page to run the command that displays your namespaces. View the output, then click on a row in the table to set a different namespace. -
Use the Supported command list to learn about commands that you can run using
kubectloroc.
1.4.2. Supported command list 复制链接链接已复制到粘贴板!
The following table provides information and examples for the command types that are supported by the Visual Web Terminal:
| Command | Description | Example |
|---|---|---|
|
| Run the previous command again |
|
|
|
Run the following basic |
|
|
| Change the current working directory for local filesystem changes |
|
|
| Clear the screen of previous commands and output |
|
|
| Export the output of the command to an external file |
|
|
|
Run supported |
|
|
| Display additional information about a command that is supported in the Visual Web Terminal in a side panel. |
|
|
|
Displays the previous 25 commands that were run during the current session. Tip: You can limit the search criteria by adding it to the end of the command. For example, |
|
|
|
Run supported |
|
|
|
Runs Red Hat OpenShift |
|
|
| Searches your Kubernetes resources for those that match the specified search filters and parameters |
|
|
| Displays your saved searches that you created and saved in the Search page. |
|
|
|
Pauses activity during a session. Note: Requires a |
|
|
|
Displays the contrast theme options of the interface, which you can set to either |
|
1.4.3. Searching with Visual Web Terminal 复制链接链接已复制到粘贴板!
The Visual Web Terminal search function provides visibility into your resources across all your clusters.
You can only search for resources based on your role-based access control level assignment. If you save and share a search query with another user, returned results for that user depend on his or her access level.
- Start a Visual Web Terminal session.
-
In the command entry field of the Visual Web Terminal, type:
search. When you run asearchcommand, the Visual Web Terminal verifies that the search function is available. If it is not available, a message indicates that either the search function is not installed, or that it is just not available. If it is installed, but not available, it might be a network issue. -
Add a space after the
searchcommand. The list of filters that are available for the search is displayed. The list of filters might be empty because it is dependent on the resources that are available in your environment and your role permissions. -
Select one of the filters from the list. The selected filter is added to the search criteria on your command line, and the next level of filters for that selection are displayed. Tip: You can also enter a string after the
searchcommand, rather than selecting a filter from the list. - Optional: Add filters by entering a single space after each filter entry until your command contains all of the required filters.
- When you are finished adding your search criteria, press Enter to run the search.
You can refine your results with specific fields. See the following example:
-
Search for a single field, such as
kind:podto find all pod resources. -
Search for multiple fields, such as
kind:pod namespace:defaultto find the pods in the default namespace.
You can also search with conditions using characters, such as (>, >=, <, <=, !=).
See the following examples:
-
Search for
kind:pod status:!Runningto find all pod resources where the status is notRunning. -
Search for
kind:pod restarts:>1to find all pods that have restarted at least twice.
The search returns resources that meet the criteria of your search request, as well as links to view related resources. Viewing all of them helps you visualize how the resources interact with other resources in the system.
Your search results are grouped by kind and each resource kind is grouped in a table. You can reorder the data in the tables by selecting the row and column headings.
You can use a search that was saved in the console by entering the savedsearches command and selecting the search that you want to run.