Upgrading Cloud Native Compiler
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:
-
Connect into the storage pod:
$ kubectl exec --stdin --tty storage-0 -- /bin/sh -
Inside the pod run the following command to change permissions:
$ chown -R 10001 /data && chmod u+rxw /data -
After the
chmod
command is completed, you can exit the pod shell withctrl-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: ""