Upgrade AGIC by using Helm

You can upgrade the Azure Application Gateway Ingress Controller (AGIC) for Kubernetes by using a Helm repository hosted on Azure Storage.

Upgrade

  1. View the currently installed Helm charts:

    helm list
    

    Sample response:

    NAME            REVISION        UPDATED                         STATUS  CHART                   APP VERSION     NAMESPACE
    odd-billygoat   22              Fri Jun 21 15:56:06 2019        FAILED  ingress-azure-0.7.0-rc1 0.7.0-rc1       default
    

    The Helm chart installation from the preceding sample response is named odd-billygoat. This article uses that name for the commands. Your actual deployment name will be different.

  2. Upgrade the Helm deployment to a new version:

    helm upgrade \
        odd-billygoat \
        oci://mcr.microsoft.com/azure-application-gateway/charts/ingress-azure \
        --version 1.8.0
    

Roll back

If the Helm deployment fails, you can roll back to a previous release:

  1. Get the number of the last known healthy release:

    helm history odd-billygoat
    

    Sample output:

    REVISION        UPDATED                         STATUS          CHART                   DESCRIPTION
    1               Mon Jun 17 13:49:42 2019        DEPLOYED        ingress-azure-0.6.0     Install complete
    2               Fri Jun 21 15:56:06 2019        FAILED          ingress-azure-xx        xxxx
    

    Based on the sample output of the helm history command, the last successful deployment of the odd-billygoat example was revision 1.

  2. Roll back to the last successful revision:

    helm rollback odd-billygoat 1