Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

CodeReady Workspaces scales up, is now Red Hat OpenShift Dev Spaces

April 1, 2022
Mario Loriedo
Related topics:
Developer ToolsIDEsKubernetesOperators
Related products:
Developer ToolsRed Hat OpenShift Dev SpacesRed Hat OpenShift

Share:

    On June 14th, Red Hat released the Red Hat OpenShift Dev Spaces development platform, a higher-performing, richer, and renamed version of Red Hat CodeReady Workspaces. The platform has been significantly upgraded by moving to a Kubernetes Operator. This article explains the major changes in this upgrade and their effects on administrators and users.

    The team worked on this version for over a year and introduced the new platform as a tech preview after CodeReady Workspaces 2.10. The official name of this release is Red Hat OpenShift Dev Spaces 3.0.

    Changes to the workspace engine

    The core of CodeReady Workspaces used to be a Java REST web service named che-server, which provisioned pods and other objects to run development environments on Red Hat OpenShift. With OpenShift Dev Spaces 3.0, we are introducing a new OpenShift Operator to replace the che-server: the DevWorkspace Operator (Figure 1). This is a big architectural change whose benefits we'll summarize in the following sections.

    The engine between the user interface and the workspace is now a Kubernetes Operator instead of a Java REST service
    Figure 1: The engine between the user interface and the workspace is now a Kubernetes Operator instead of a Java REST service.

    Scalability and high availability

    The che-server could not scale horizontally: it wasn't possible to run two instances concurrently. The new engine is a Kubernetes controller, so it runs behind the kube-apiserver that is designed to scale horizontally. The data is persisted in an etcd key-value store that is designed to be highly available.

    A universal API

    Workspaces are Kubernetes objects. Useful traits of this architecture include:

    • Kubernetes clients such as kubectl or the OpenShift console can manage them.
    • They are secured via Kubernetes RBAC.
    • They can be validated and protected by admission webhooks.
    • The devfile specification is automatically generated from the API.

    A simpler design

    The new workspace engine has a single responsibility, which is to manage workspace resources. The engine is decoupled from the developer's IDE and the server-side components of the OpenShift Dev Spaces service. Communication between components happens asynchronously using ConfigMaps and Secrets rather than a REST API.

    An opportunity for refactoring

    The new engine has been written from scratch, and we took the opportunity to address some of the main issues reported by our users:

    • Simpler configuration for the administrator
    • No hard dependency on Red Hat's single sign-on technology
    • Simpler network model and TLS certificate management with one unique gateway

    What's changing?

    The switch to the DevWorkspace Operator introduces changes for existing users and administrators of CodeReady Workspaces. Here is a summary.

    Administration

    There is a new server-side component: the gateway (powered by the open source reverse proxy Traefik) that handles users' connection to the IDEs. Several simplifications have been made to administration, along with new options:

    • User workspaces can be managed with the oc command-line interface (CLI) or via the OpenShift console.
    • CRW doesn't require Red Hat's SSO anymore and uses OpenShift OAuth for authentication.
    • Deployment is simpler because there are fewer configuration options. For instance, the namespace strategy and the exposure strategy are set to "per-user" and "single-host" respectively, as we have observed that users want those settings.
    • The operator installation mode is "all namespaces."

    User experience

    Our enhancements to the user experience include:

    • We now support version 2 of the devfile spec, which has some significant improvements in regard to parents and events. Version 1 devfiles also continue to be supported.
    • Devfiles are IDE agnostic and don't include plug-in definitions anymore. IDE-specific configurations are managed in separate files as extensions.json in Visual Studio Code.
    • We have added tech preview support for VisualStudio Code as an IDE (in addition to Eclipse Theia and JetBrains IDEs).
    • Workspaces load faster, with fewer containers per workspace.

    How to get OpenShift Dev Spaces

    Red Hat OpenShift Dev Spaces is available with OpenShift 4.10 or higher. Installation can be done through the usual channels, via the OperatorHub or the command line.

    If you're an existing Red Hat CodeReady Workspaces customer you won't be upgraded automatically to OpenShift Dev Spaces. You'll need need to follow a manual procedure to upgrade your instance.

    To learn more, check out the following resources:

    • Red Hat OpenShift Dev Spaces 3.0 Documentation
    • Red Hat OpenShift Dev Spaces 3.0 Release Notes and Known Issues
    • Upgrading CodeReady Workspaces 2.15
    • VS Code and IntelliJ with CodeReady Workspaces v2.15 (Tech Preview)
    • Migrating to devfile v2

    Kudos to the whole Che team at Red Hat that worked hard on this challenging pivot.

    Last updated: August 12, 2024

    Related Posts

    • Using a custom devfile registry and C++ with Red Hat CodeReady Workspaces

    • Support for IBM Z and more in CodeReady Workspaces 2.4

    • Sharing your Container Development Environment with Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)

    Recent Posts

    • GuideLLM: Evaluate LLM deployments for real-world inference

    • Unleashing multimodal magic with RamaLama

    • Integrate Red Hat AI Inference Server & LangChain in agentic workflows

    • Streamline multi-cloud operations with Ansible and ServiceNow

    • Automate dynamic application security testing with RapiDAST

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    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

    Red Hat legal and privacy links

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

    Report a website issue