rstudio-workbench

by Posit PBC

Helm chartv0.22.10App 2026.11.1MITVerified publisher

Official Helm chart for Posit Workbench

About this chart

Posit Workbench

Official Helm chart for Posit Workbench

Data Scientists use Posit Workbench to analyze data and create data products using R and Python.

Chart versioning

Chart versions use SemVer and follow Helm's chart versioning guidance. They describe the chart.

Product versions belong in appVersion.

While a chart is below 1.0.0:

  • Minor: breaking changes or changes that require user action
  • Patch: product releases, enhancements, bug fixes, and other compatible changes
  • Major: not used

After 1.0.0, standard SemVer applies.

For production

To ensure a stable production deployment:

  • "Pin" the version of the Helm chart that you are using. You can do this using the:

    • helm dependency command and the associated "Chart.lock" files or

    • the --version flag.

      ::: {.callout-important} This protects you from breaking changes. :::

  • Before upgrading check for breaking changes using helm-diff plugin and helm diff upgrade.

  • Read NEWS.md for updates on breaking changes and the documentation below on how to use the chart.

Installing the chart

To install the chart with the release name my-release at version 0.22.10:

helm repo add rstudio https://helm.rstudio.com
helm upgrade --install my-release rstudio/rstudio-workbench --version=0.22.10

To explore other chart versions, look at:

helm search repo rstudio/rstudio-workbench -l

Required configuration

To function, this chart requires the following:

  • A license file. See the Licensing section below for more details.

  • A Kubernetes PersistentVolume that contains the home directory for users.

    • If homeStorage.create is set, it creates a Persistent Volume Claim (PVC) that relies on the default storage class to generate the PersistentVolume. Most Kubernetes environments do not have a default storage class that you can use with ReadWriteMany access mode out-of-the-box. In this case, we recommend that you:
      • Disable homeStorage.create and create your own PersistentVolume and PersistentVolumeClaim, then
      • Mount them into the container by specifying the pod.volumes and pod.volumeMounts parameters, or by specifying your PersistentVolumeClaim using homeStorage.name and homeStorage.mount.
    • If you cannot use a PersistentVolume to properly mount your users' home directories, mount your data in the container by using a regular Kubernetes Volume, specified in pod.volumes and pod.volumeMounts.
    • If you cannot use a Volume to mount the directories, manually mount them during container startup with a mechanism similar to what is described below for joining to auth domains.
    • If not using homeStorage.create, configure config.serverDcf.launcher-mounts to ensure that the correct mounts are used when users create new sessions.
  • If using load balancing (by setting replicas > 1), you need similar storage defined for sharedStorage to store shared project configuration. However, you can also configure the product to store its shared data underneath /home by setting config.server.rserver\.conf.server-shared-storage-path=/home/some-shared-dir.

  • A method to join the deployed rstudio-workbench container to your auth domain. The posit/workbench image ships sssd for legacy LDAP/Active Directory provisioning; because it must run as root, the bundled daemon starts only when config.sssd.enabled: true and pod.runAsRoot: true. Modern provisioning (SCIM / native) does not require sssd. See User provisioning for details. Provide sssd configuration in config.sssd.conf like so:

    config:
      sssd:
        enabled: true
        conf:
          mysssd.conf:
            sssd:
              config_file_version: 2
              services: nss, pam
              domains: rstudio.com
            domain/rstudio.com:
              id_provider: ldap
              auth_provider: ldap
    

Licensing

This chart supports activating the product using a license file.

We recommend storing a license file as a Secret and setting the license.file.secret and license.file.secretKey values accordingly.

First, create the secret declaratively with YAML or imperatively using the following command:

kubectl create secret generic rstudio-workbench-license --from-file=licenses/rstudio-workbench.lic

Second, specify the following values:

license:
  file:
    secret: rstudio-workbench-license
    secretKey: rstudio-workbench.lic

Alternatively, license files can be set during helm install with the following argument:

--set-file license.file.contents=licenses/rstudio-workbench.lic

Database

Workbench requires a PostgreSQL database when running in Kubernetes. You must configure a valid connection URI and a password for the product to function correctly. The database.conf values may be defined in either config.database.conf or config.secret.database.conf. The former permits using a database.conf file as an existing Kubernetes Secret. The latter will automatically create a Kubernetes Secret for database.conf based on the defined values. In either method of defining database configuration details in the values.yaml file, it is possible to include the database password in the configuration section, however, we recommend only adding the connection URI and putting the database password in a Kubernetes Secret, which can be automatically set as an environment variable.

Database configuration via config.database.conf

You can specify your database connection details in config.database.conf as follows:

config:
  database:
    conf:
      value: |
        provider=postgresql
        connection-uri=postgres://<USERNAME>@<HOST>:<PORT>/<DATABASE>?sslmode=allow

or you can use an existing Secret that contains the database configuration file:

config:
  database:
    conf:
      existingSecret: <name-of-secret-containing-database.conf`>

Database configuration via config.secret.database.conf

Add the following to your values.yaml, replacing the connection-uri with your database details.

config:
  secret:
    database.conf:
      provider: "postgresql"
      connection-uri: "postgres://<USERNAME>@<HOST>:<PORT>/<DATABASE>?sslmode=allow"

Database password

First, create a Secret declaratively with YAML or imperatively using the following command (replacing with your actual password):

kubectl create secret generic rstudio-workbench-database --from-literal=password=YOURPASSWORDHERE

To avoid storing the password in your shell history, use:

kubectl create secret generic rstudio-workbench-database --from-file=password=/path/to/password-file

the file at /path/to/password-file should contain only the password.

Second, specify the following in your values.yaml:

pod:
  env:
    - name: WORKBENCH_POSTGRES_PASSWORD
      valueFrom:
        secretKeyRef:
          name: rstudio-workbench-database
          key: password

Alternatively, database passwords may be set during helm install with the following argument:

--set config.secret.'database\.conf'.password="<YOUR_PASSWORD_HERE>"

Upgrade guidance

0.20.0

  • Chart version 0.20.0 switches default images from rstudio/ to the posit/ namespace on Docker Hub (also available at ghcr.io/posit-dev/). See the migration guide for details.
  • Image tag format changed from {tagPrefix}{appVersion} to {appVersion}-{os}. The chart will fail with a clear error if you have image.tagPrefix or session.image.tagPrefix set.
  • Session image tag is now constructed from session.image.rVersion, session.image.pythonVersion, and session.image.os (format: R{rVersion}-python{pythonVersion}-{os}).

Session images

By default, session pods use the posit/workbench-session image (also available at ghcr.io/posit-dev/workbench-session) with an init container (posit/workbench-session-init) that delivers Workbench session components at pod startup.

The session image tag is constructed from three values: session.image.rVersion, session.image.pythonVersion, and session.image.os. Override session.image.tag to bypass this construction entirely.

Upgrading from 0.11.x

If you use default values, no action is needed. If you customized session images:

  • Replace session.image.tagPrefix with session.image.os, session.image.rVersion, and session.image.pythonVersion
  • Replace session.image.repository: rstudio/workbench-session with posit/workbench-session
  • If you pinned session.image.tag to an old-format string (e.g., ubuntu2204-r4.5.2_4.4.3-py3.13.9_3.12.11), verify that tag exists in the posit/workbench-session repository or update to the new format

For platform-level upgrade steps, see the Posit Workbench administrator guide.

All-in-one image

To use the r-session-complete image (which packages all components into a single image), disable session components and change the session image:

session:
  image:
    repository: "rstudio/r-session-complete"
components:
  enabled: false

Positron

Positron IDE is available by default. The workbench-session-init container delivers a bundled Positron version alongside other session components.

To upgrade Positron independently of a Workbench release, set a version under components.positron:

components:
  positron:
    version: "2026.03.0"

This attaches a separate init container that delivers the specified Positron version and its documentation, overriding the bundled version.

Changing components.positron.version updates the init container spec on the Workbench pod and triggers a pod rollout. This is not a zero-downtime, session-only operation.

General principles

  • In most places, we opt to pass Helm values directly into ConfigMaps. We automatically translate these into the valid .ini or .dcf file formats required by Workbench.
    • Those configuration files and their mount locations are covered in the Configuration files section below.
  • If you need to modify the jobs (sessions) launched by Workbench, use launcher.templateValues as described in the Launcher Templates section below.
  • The prestart scripts for Workbench and Posit Job Launcher are highly customized to get the service account information off of the Workbench pod for use in launching jobs.

Configuration files

These configuration values all take the form of usual Helm values so you can set the database password with something like:

... --set config.secret.database\.conf.password=mypassword ...

The files are converted into configuration files in the necessary format via go-templating. If you want to "in-line" a config file or mount it verbatim, you can use a pattern like:

config:
  server:
    rserver.conf: |
      verbatim-file=format

The names of files are dynamically used, so you can add new files as needed. Beware that some files have default values, so moving them can have adverse effects. Also, if you use a different mounting paradigm, you need to change the XDG_CONFIG_DIRS environment variable.

  • Session Configuration
    • These configuration files are mounted into the server and are mounted into the session pods.
    • repos.conf, rsession.conf, notifications.conf
    • Located in: config.session.<< name of file >> Helm values
    • Mounted at: /mnt/session-configmap/rstudio/
  • Session Secret Configuration:
    • These configuration files are mounted into the server and session pods.
    • odbc.ini and other similar shared secrets.
    • Located in: config.sessionSecret.<< name of file>> Helm values
    • Mounted at: /mnt/session-secret/
  • Secret Configuration:
    • These configuration files are mounted into the server with more restrictive permissions (0600).
    • database.conf, openid-client-secret, databricks.conf
    • Located in: config.secret.<< name of file >> Helm values
    • Mounted at: /mnt/secret-configmap/rstudio/
  • Server Configuration:
    • These configuration files are mounted into the server (.ini file format).
    • rserver.conf, launcher.conf, jupyter.conf, logging.conf
    • Located at: config.server.<< name of file >> Helm values
    • Mounted at: /mnt/configmap/rstudio/
  • Server DCF Configuration:
    • These configuration files are mounted into the server (.dcf file format).
    • launcher-mounts, launcher-env
    • Located at: config.serverDcf.<< name of file >> Helm values
    • Included at: /mnt/configmap/rstudio/
  • Profiles Configuration:
    • These configuration files are mounted into the server (.ini file format).
    • launcher.kubernetes.profiles.conf
    • They are located at config.profiles.<< name of file >> Helm values
    • Included at: /mnt/configmap/rstudio/
    • See the Profiles section below for more information.
  • Prestart:
    • This is provided by the Helm chart in a configmap.
    • It is mounted into the pod at /scripts/.
    • prestart-workbench.bash is used to start workbench.
    • prestart-launcher.bash

Deploy rstudio-workbench with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rstudio-workbench 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 chartrstudio-workbench is pinned at v0.22.10 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