This guide will show you how to upgrade your Coder deployment.

Before proceeding, review the upgrade considerations article for information breaking charges, architecture changes, and so on.

Recommendations

  • As with any significant maintenance operation, we strongly recommend taking a snapshot of the database before upgrading. If there are upgrade issues, it is simpler and safer to roll back at the database level since it guarantees restoration of the system to a known working condition.

  • We recommend updating no more than one major version at a time (e.g., we recommend moving from 1.28 to 1.29 only).

Prerequisites

  • If you haven't already, install Helm.

  • Before beginning the update process, ensure that you've added the Coder Helm repo to your cluster. You can verify that the Coder repo has been added to Helm using helm repo list:

    $ helm repo list
    NAME URL
    coder https://helm.coder.com
    

    If you don't have the Coder repo, you can add it:

    helm repo add coder https://helm.coder.com
    

Upgrade Coder

  1. Retrieve the latest repository information:

    helm repo update
    
  2. Export your current Helm chart values into a file:

    helm get values --namespace coder coder > current-values.yaml
    

    Make sure that your values only contain the changes you want (e.g., if you see references to a prior version, you may need to remove these).

  3. Upgrade Coder with your new Helm chart:

    helm upgrade coder coder/coder -n coder --version=<VERSION> --values current-values.yaml
    
See an opportunity to improve our docs? Make an edit.