Perform an upgrade#
Upgrade a DNS-controller instance#
Log in to the appropriate artifact registry with Helm and set the repository address#
Upgrade the DNS-controller instance#
In a terminal window on your computer, make sure you’re in the Aspen Mesh Platform chart directory for the new version (the version you want to upgrade to).
Copy the override values file for the old version of the DNS-controller instance (the version you’re upgrading from) to the Aspen Mesh Platform chart directory for the new version (the version you want to upgrade to).
Set the
AM_TAGenvironment variable to the old version of the DNS controller (the version you’re upgrading from).Example
$ export AM_TAG=1.21.6-am1
Copy the old DNS-controller
values.yamlfile to a temporary file:$ helm show values oci://$AM_REPO/charts/dns-controller --version $AM_TAG > dns-controller-values-old.yaml
Set the
AM_TAGenvironment variable to the new version of the DNS controller (the version you want to upgrade to).Example
$ export AM_TAG=1.21.6-am2
Copy the new DNS-controller
values.yamlfile to a temporary file:$ helm show values oci://$AM_REPO/charts/dns-controller --version $AM_TAG > dns-controller-values-new.yaml
Compare the new temporary file with the old temporary file:
$ diff dns-controller-values-new.yaml dns-controller-values-old.yaml
If there are any new fields that are required or that you want to override:
Open the override values file for the DNS-controller instance in a text editor.
Copy the fields to the override values file and change their values if you want to override them.
Save and close the file.
Delete the temporary files:
$ rm dns-controller-values-old.yaml dns-controller-values-new.yaml
Download the Aspen Mesh
dns-controllerchart archive file:$ helm pull oci://$AM_REPO/charts/dns-controller --version $AM_TAG
Extract the Aspen Mesh
dns-controllerchart archive file:$ tar xvf <chartArchiveFilename>
Upgrade the DNS-controller custom resource definition (CRD):
$ kubectl apply -f dns-controller/crds
Are you upgrading a general DNS-controller instance (not a realm-specific DNS-controller instance)?
Yes:
Upgrade the DNS-controller instance without specifying a realm:
$ helm upgrade <dnsControllerInstanceName> oci://$AM_REPO/charts/dns-controller --version $AM_TAG \ --namespace <instanceNamespaceName> \ --values <instanceOverrideValuesFilename> \ --wait
No:
Upgrade the DNS-controller instance and specify its realm:
$ helm upgrade <dnsControllerInstanceName> oci://$AM_REPO/charts/dns-controller --version $AM_TAG \ --namespace <instanceNamespaceName> \ --values <instanceOverrideValuesFilename> \ --set realm=<realmName> \ --wait