dev-spaces

by tjungbauer

Helm chartv1.0.5Apache-2.0Verified publisher

Red Hat OpenShift Dev Spaces is a collaborative Kubernetes-native development solution that delivers consistent developer environments on Red Hat OpenShift.

About this chart

dev-spaces

Description

Red Hat OpenShift Dev Spaces is a collaborative Kubernetes-native development solution that delivers consistent developer environments on Red Hat OpenShift.

Red Hat OpenShift Dev Spaces is a collaborative Kubernetes-native development solution that delivers consistent developer environments on Red Hat OpenShift. It provides:

  • Cloud-Based Development: Browser-based IDE with no local setup required
  • Consistent Environments: Reproducible workspaces defined as code
  • Collaborative: Team-based development with shared workspaces
  • Kubernetes-Native: Built for containerized application development
  • Extensible: Support for VS Code extensions and custom plugins

Prerequisites

  • OpenShift cluster 4.12 or later
  • Cluster administrator access
  • Dev Spaces Operator installed
  • Sufficient cluster resources:
    • Minimum 4 CPU cores
    • Minimum 8 GB RAM
    • Storage class for persistent volumes

Dependencies

This chart has the following dependencies:

RepositoryNameVersion
https://charts.stderr.at/tpl~1.0.31

It is best used with a full GitOps approach such as Argo CD does. For example, https://github.com/tjungbauer/openshift-clusterconfig-gitops (for example in the folder clusters/management-cluster/setup-file-integrity-operator)

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/dev-spaces

Installation

Quick Start

# Add the repository
helm repo add tjungbauer https://github.com/tjungbauer/helm-charts/

# Update repositories
helm repo update

# Install with default values
helm install devspaces tjungbauer/dev-spaces \
  --namespace openshift-devspaces \
  --create-namespace

Values validation

values.schema.json documents and validates chart values (enums for log levels, PVC strategy, image pull policy, and related fields). Helm applies it during helm lint and helm install when a schema is present:

helm lint . -f values.yaml

See CHANGELOG.md for release history.

GitOps / ArgoCD

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: dev-spaces
  namespace: openshift-gitops
spec:
  project: default
  source:
    repoURL: https://github.com/tjungbauer/helm-charts/
    targetRevision: main
    path: charts/dev-spaces
    helm:
      valueFiles:
        - values.yaml
  destination:
    server: https://kubernetes.default.svc
    namespace: openshift-devspaces
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true

Configuration

Critical Configuration Requirements

1. Networking Configuration

Required - Configure domain and hostname:

checluster:
  networking:
    domain: apps.example.com          # Your OpenShift apps domain
    hostname: devspaces                # Dev Spaces hostname
    ingressClassName: openshift-default

2. Storage Configuration

Configure persistent storage for workspaces:

checluster:
  devEnvironments:
    storage:
      pvcStrategy: per-user              # or: common, per-workspace, ephemeral
      perUserStrategyPvcConfig:
        storageClass: gp3-csi            # Your storage class
        claimSize: 10Gi                  # Size per user
        storageAccessMode:
          - ReadWriteOnce

3. Authentication Configuration

Required for production - Configure OAuth/OIDC:

checluster:
  networking:
    auth:
      identityProviderURL: https://keycloak.example.com
      oAuthClientName: devspaces
      oAuthSecret: devspaces-oauth-secret
      oAuthScope: openid email profile

Component Configuration

Che Server

Configure the main Che server component:

checluster:
  components:
    cheServer:
      debug: false
      logLevel: INFO
      deployment:
        resources:
          requests:
            cpu: 100m
            memory: 512Mi
          limits:
            cpu: 1
            memory: 1Gi
        tolerations:
          - effect: NoSchedule
            key: node-role
            operator: Equal
            value: devspaces

Dashboard

Configure the Dev Spaces dashboard:

checluster:
  components:
    dashboard:
      logLevel: INFO
      branding:
        logo:
          base64data: <base64-encoded-logo>
          mediatype: image/png
      headerMessage:
        show: true
        text: "Welcome to Dev Spaces"

Workspace Configuration

Resource Limits

checluster:
  devEnvironments:
    maxNumberOfWorkspacesPerUser: 5
    maxNumberOfRunningWorkspacesPerUser: 3
    maxNumberOfRunningWorkspacesPerCluster: 50

Timeouts and Idling

checluster:
  devEnvironments:
    startTimeoutSeconds: 600
    secondsOfRunBeforeIdling: -1          # -1 = no idling
    secondsOfInactivityBeforeIdling: 1800 # 30 minutes

Default Editor

checluster:
  devEnvironments:
    defaultEditor: che-incubator/che-code/latest

Git Services Integration

Configure Git provider integration:

checluster:
  gitServices:
    github:
      - secretName: github-oauth-secret
        endpoint: https://github.com
        disableSubdomainIsolation: false
   
    gitlab:
      - secretName: gitlab-oauth-secret
        endpoint: https://gitlab.com
   
    bitbucket:
      - secretName: bitbucket-oauth-secret
        endpoint: https://bitbucket.org

Advanced Configuration

Container Build

Enable/disable container builds in workspaces:

checluster:
  devEnvironments:
    disableContainerBuildCapabilities: false
    containerBuildConfiguration:
      openShiftSecurityContextConstraint: container-build

Trusted Certificates

checluster:
  devEnvironments:
    trustedCerts:
      disableWorkspaceCaBundleMount: false
      gitTrustedCertsConfigMapName: git-trusted-certs

Advanced Authorization

checluster:
  networking:
    auth:
      advancedAuthorization:
        allowGroups:
          - developers
          - admins
        allowUsers:
          - [email protected]
        denyGroups:
          - blocked-group
        denyUsers:
          - [email protected]

Configuration Examples

Example 1: Basic Configuration

Minimal setup for development:

checluster:
  enabled: true
  namespace: openshift-devspaces
 
  devEnvironments:
    storage:
      pvcStrategy: per-user
      perUserStrategyPvcConfig:
        claimSize: 5Gi
 
  networking:
    domain: apps.example.com
    hostname: devspaces

Example 2: Production Configuration

Production-ready setup with resource limits:

checluster:
  enabled: true
  namespace: openshift-devspaces
 
  components:
    cheServer:
      logLevel: INFO
      deployment:
        resources:
          requests:
            cpu: 200m
            memory: 1Gi
          limits:
            cpu: 2
            memory: 2Gi
 
  devEnvironments:
    maxNumberOfWorkspacesPerUser: 10
    maxNumberOfRunningWorkspacesPerUser: 5
    maxNumberOfRunningWorkspacesPerCluster: 100
    startTimeoutSeconds: 600
    secondsOfInactivityBeforeIdling: 3600
   
    storage:
      pvcStrategy: per-user
      perUserStrategyPvcConfig:
        storageClass: gp3-csi
        claimSize: 20Gi
   
    tolerations:
      - effect: NoSchedule
        key: devspaces
        operator: Equal
        value: "true"
 
  networking:
    domain: apps.prod.example.com
    hostname: devspaces
    ingressClassName: openshift-default
    tlsSecretName: devspaces-tls
   
    auth:
      identityProviderURL: https://keycloak.prod.example.com
      oAuthClientName: devspaces
      oAuthSecret: devspaces-oauth-secret

Validation

The chart includes comprehensive validations:

  • Log Levels: Must be DEBUG, INFO, WARN, or ERROR
  • Image Pull Policy: Must be Always, IfNotPresent, or Never
  • Deployment Strategy: Must be Recreate or RollingUpdate
  • PVC Strategy: Must be common, per-workspace, per-user, or ephemeral
  • Timeout Values: Must be positive integers
  • Namespace Templates: Must contain <username>, <userid>, or <workspaceid>
  • Storage Quantities: Must be valid Kubernetes quantities (e.g., 10Gi)

Monitoring and Observability

Enable Metrics

checluster:
  components:
    metrics:
      enable: true

Health Checks

# Check overall status
oc get checluster -n openshift-devspaces

# Check component health
oc get pods -n openshift-devspaces

# Check routes
oc get routes -n openshift-devspaces

Additional Resources

Values

KeyTypeDefaultDescription
checluster.additionalAnnotationsobject{}Additional annotations to add to the CheCluster instance as key: value pairs.
checluster.additionalLabelsobject{}Additional labels to add to the CheCluster instance as key: value pairs.
checluster.components.cheServerobject{"clusterRoles":[],"debug":false,"deployment":{"tolerations":{}},"logLevel":"INFO","proxy":{"credentialsSecretName":"","nonProxyHosts":[],"port":"","url":""}}General configuration settings related to the Che server.
checluster.components.cheServer.clusterRoleslist[]Additional ClusterRoles assigned to Che ServiceAccount. Each role must have a app.kubernetes.io/part-of=che.eclipse.org label. The defaults roles are: - <che-namespace>-cheworkspaces-clusterrole - <che-namespace>-cheworkspaces-namespaces-clusterrole - <che-namespace>-cheworkspaces-devworkspace-clusterrole where the is the namespace where the CheCluster CR is created. The Che Operator must already have all permissions in these ClusterRoles to grant them.
checluster.components.cheServer.debugboolfalseEnables the debug mode for Che server.
checluster.components.cheServer.deploymentobject{"tolerations":{}}Deployment override options.
checluster.components.cheServer.deployment.tolerationsobject{}Tolerations for Che Server pods.
checluster.components.cheServer.logLevelstringINFOLog level for Che Server (DEBUG, INFO).
checluster.components.cheServer.proxyobject{"credentialsSecretName":"","nonProxyHosts":[],"port":"","url":""}Proxy server settings for Kubernetes cluster. No additional configuration is required for OpenShift cluster. By specifying these settings for the OpenShift cluster, you override the OpenShift proxy configuration.
checluster.components.cheServer.proxy.credentialsSecretNamestring''The secret name that contains user and password for a proxy server. The secret must have a app.kubernetes.io/part-of=che.eclipse.org label.
checluster.components.cheServer.proxy.nonProxyHostslist[]A list of hosts that can be reached directly, bypassing the proxy. Specify wild card domain use the following form .<DOMAIN>, for example: - localhost - 127.0.0.1 - my.host.com - 123.42.12.32 Use only when a proxy configuration is required. The Operator respects OpenShift cluster-wide proxy configuration, defining nonProxyHosts in a custom resource leads to merging non-proxy hosts lists from the cluster proxy configuration, and the ones defined in the custom resources.
checluster.components.cheServer.proxy.portstring''Proxy port.
checluster.components.cheServer.proxy.urlstring''URL (protocol+hostname) of the proxy server. Use only when a proxy configuration is required. The Operator respects OpenShift cluster-wide proxy configuration, defining url in a custom resource leads to overriding the cluster proxy configuration.
checluster.components.dashboardobject{"branding":{"logo":{"base64data":"","mediatype":""}},"deployment":{"tolerations":{}},"headerMessage":{"show":false,"text":""},"logLevel":"INFO"}Configuration settings related to the dashboard used by the Che installation.
checluster.components.dashboard.brandingobject{"logo":{"base64data":"","mediatype":""}}Dashboard branding resources.
checluster.components.dashboard.branding.logoobject{"base64data":"","mediatype":""}Dashboard logo.
checluster.components.dashboard.branding.logo.base64datastring''Base64-encoded logo data.
checluster.components.dashboard.branding.logo.mediatypestring''Media type of the logo (e.g., image/png).
checluster.components.dashboard.deploymentobject`{"toler

Deploy dev-spaces with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dev-spaces on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdev-spaces is pinned at v1.0.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply