Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open Source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Cluster tooling updates and more in Red Hat OpenShift's Web Terminal Operator 1.3

August 19, 2021
Josh Pinkney Angel Misevski
Related topics:
Operators
Related products:
Red Hat OpenShift

    The Web Terminal Operator in Red Hat OpenShift provides a web terminal with common cluster tooling pre-installed. The operator gives you the power and flexibility to work with your product directly through the OpenShift web console, eliminating the need to have all your tooling installed locally.

    This article is an overview of the new features introduced in Web Terminal Operator 1.3. These improvements include depending on the newly released DevWorkspace Operator, adding support for saving your home directory, and updating our tooling to be compatible with OpenShift 4.8.

    DevWorkspace Operator dependency

    Previously, the Web Terminal Operator relied on an embedded version of the DevWorkspace controller to provide support for web terminals. That meant that in order to get the latest and greatest changes for the DevWorkspace controller, you had to wait three months for a new Web Terminal Operator release. As of Web Terminal 1.3, we have extracted that dependency, released the DevWorkspace Operator as its own separate operator, and now depend on that for providing support for web terminals. What this means for you is that the engine “under the hood” (the DevWorkspace Operator) will be updated every six weeks, instead of the standard three-month schedule for the Web Terminal Operator.

    Saving your home directory

    With Web Terminal 1.3, you will be able to mount your home directory and persist changes to your web terminal over multiple restarts. This feature isn’t enabled by default and it requires some additional configuration. This additional configuration depends on whether or not you already have a web terminal.

    Note: Only a web terminal that has a volume and volume mount for /home/user will persist the home directory. Details follow.

    If you already have a web terminal

    In order to persist the home directory over multiple restarts, you will need to update the custom resource to mount a volume into the web terminal tooling container:

    First, get your web terminal custom resource in your namespace and open it up for editing:

    oc get dw -n ${your_namespace}
    oc edit dw ${your web terminal name} -n ${your_namespace}

    Now that you have your custom resource open for editing, modify the DevWorkspace custom resource components section to add a mount for the storage. This can be done by first defining a volume in spec.template.components and then mounting that volume in the web terminal tooling container. The highlighted portion of the YAML file in Figure 1 shows what you need to add in order to get the mount.

    The configuration of your DevWorkspace must have a section mounting the /home/user directory
    Figure 1: Configuration file with a section mounting the /home/user directory.

    Once your custom resource has been edited and saved, you can start a new web terminal and create changes under /home/user. Your changes will persist over multiple restarts.

    Note: If you are editing the custom resource inside a web terminal, the web terminal will automatically apply the changes and then close the active web terminal. To reopen the web terminal with the changes applied, click the Restart Terminal button.

    If you don’t already have a web terminal

    In order to persist the home directory if you don’t already have a web terminal, you can edit your configuration file and add the following fields. In the YAML shown, replace ${your namespace} with the namespace where you want to create the web terminal.

    Note: If you are an admin, you must create your web terminal in openshift-terminal, otherwise you will not be able to connect to the web terminal through the OpenShift web console. If the openshift-terminal namespace does not currently exist, you must start your first web terminal through the UI so that the namespace is provisioned.

    kind: DevWorkspace
    apiVersion: workspace.devfile.io/v1alpha2
    metadata:
      name: web-terminal
      namespace: ${your namespace}
      annotations:
        controller.devfile.io/restricted-access: "true"
      labels:
        console.openshift.io/terminal: "true"
    spec:
      started: true
      routingClass: 'web-terminal'
      template:
        components:
        - name: web-terminal-exec
          plugin:
            kubernetes:
              name: web-terminal-exec
              namespace: openshift-operators
        - name: web-terminal-tooling
          plugin:
            kubernetes:
              name: web-terminal-tooling
              namespace: openshift-operators
            components:
            - name: web-terminal-tooling
              container:
                volumeMounts:
                - name: home-storage
                  path: "/home/user"
        - name: home-storage
          volume: {}

    Once your web terminal custom resource has been created, you can start a web terminal and all your changes under /home/user will be persisted by default.

    Tooling update

    We have updated the default binaries in Web Terminal Operator 1.3 to include the latest versions of the built-in command-line tools, as shown in Table 1.

    Table 1: Command-line tools in Web Terminal Operator 1.3.
    Binary Old version New version
    oc 4.7.0 4.8.2
    kubectl v1.20.1 v0.21.0-beta.1
    odo 2.0.4 2.2.3
    knative 0.19.1 0.21.0
    tekton 0.15.0 0.17.2
    kubectx v0.9.3 v0.9.4
    kubens v0.9.3 v0.9.4
    rhoas 0.24.1 0.25.0
    submariner   0.9.1 (First release)

    Try out these features

    In Web Terminal 1.3 we have changed the default channel from alpha to fast. This means that you’ll have to go through some extra steps to try out these new features:

    • If your cluster already has the Web Terminal Operator installed, uninstall it by following the uninstall instructions and re-install the Web Terminal Operator using the fast channel.
    • If your cluster does not have the Web Terminal Operator installed, install it using the fast channel.

    Additional resources

    For a peek into how the Web Terminal Operator works under the hood, please see A deeper look at the Web Terminal Operator by Angel Misevski. You can also check out the initial release article by Joshua Wood: Command-line cluster management with Red Hat OpenShift’s new web terminal. For a look at our previous release blog, read What’s new in Red Hat OpenShift's Web Terminal Operator 1.2.

    Last updated: September 19, 2023

    Related Posts

    • What's new in Red Hat OpenShift's Web Terminal Operator 1.2

    • Command-line cluster management with Red Hat OpenShift's new web terminal (tech preview)

    Recent Posts

    • Red Hat UBI 8 builders have been promoted to the Paketo Buildpacks organization

    • Using eBPF in Red Hat products

    • How we made one data layer serve the UI, the mocks, and the E2E tests

    • Build trusted Python containers with Project Hummingbird and Calunga

    • Simplify distributed tracing: ObservabilityInstaller installation

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility