Visit Azul.com Support

Upgrading Cloud Native Compiler

Need help?
Schedule a consultation with an Azul performance expert.
Contact Us

Upgrade an existing CNC installation to a newer version with the following commands:

 
$ helm repo update $ helm upgrade compiler cnc-helm/prime-cnc -n compiler -f values-override.yaml $ kubectl get all -n compiler

If you are upgrading from version 1.6.1 with persistent storage, follow these steps before running the helm upgrade:

  1. Connect into the storage pod:

     
    $ kubectl exec --stdin --tty storage-0 -- /bin/sh
  2. Inside the pod run the following command to change permissions:

     
    $ chown -R 10001 /data && chmod u+rxw /data
  3. After the chmod command is completed, you can exit the pod shell with ctrl-d and continue with the helm upgrade.

If you are upgrading from versions prior to 1.7.0, and you are using a custom values.yaml file with parameters for the storage component, rename the yaml block from storage to builtinStorage. For example:

Before

 
$ storage: $ persistentDataVolume: $ enabled: true $ size: "200Gi" $ storageClassName: ""

After

 
$ builtinStorage: $ persistentDataVolume: $ enabled: true $ size: "200Gi" $ storageClassName: ""