application-gateway-kubernetes-ingress icon indicating copy to clipboard operation
application-gateway-kubernetes-ingress copied to clipboard

Question: Upgrading AGIC without Helm?

Open RagingRudolf opened this issue 4 years ago • 8 comments

I have just started working with Kubernetes and I managed to install Application Gateway Ingress. I found out that some annotations are not working and that could be cause by using a too old version of AGIC. Right now I'm using version 1.2.1 according to my workload pod for application gateway.

How do I upgrade the version? I activated the ingress controller through the Azure Portal and not through Helm charts ( to be honest I have no knowlegde about it yet).

I tried to go to the pods YAML and tried to bump the version to 1.4.0 but that does not seem to work as it has been rolled back during night.

Anyone who can give me some advice?

RagingRudolf avatar Apr 16 '21 06:04 RagingRudolf

AGIC 1.4.0 rollout should start this coming week and reach all regions in a week or so.

akshaysngupta avatar May 02 '21 06:05 akshaysngupta

@RagingRudolf Just for future reference in case it's not clear, as an Azure customer using Application Gateway Ingress Controller on an Azure Kubernetes Services cluster, you should not be managing the AGIC in the cluster. You may need to update the version of k8s for your AKS if it is especially old, if AGIC requires a later version of k8s.

fatpowaranga avatar Sep 16 '21 07:09 fatpowaranga

@RagingRudolf Can you try this, see if it works ?

kubectl -n kube-system set image deployment/ingress-appgw-deployment ingress-appgw-container=mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:<tag>

MayurDhande-GSLab avatar Feb 07 '22 13:02 MayurDhande-GSLab

I have just tried this and it doesn't work.

After manually editing the deployment resource, some automation supersedes the operation and puts the old version back in place:

Operation PutApplicationGatewayOperation (03d0a58b-50c0-4569-9afc-7c99a4f766b9) was canceled and superseded by operation PutApplicationGatewayOperation (4fc4316b-d5c5-463b-9e11-5938d1bac618).

I have version 1.5.3 running and would like to receive an update.

nomaster avatar May 31 '23 07:05 nomaster

@nomaster Did you find a way to upgrade? I'm facing the same problem.

kchervonets avatar Oct 04 '23 12:10 kchervonets

I just looked again into the issue and found that you can perform an upgrade with the following Azure CLI command:

az aks addon update \
--addon ingress-appgw \
--resource-group $resource_group \
--name $cluster_name \
--appgw-id /subscriptions/$subscription_id/resourceGroups/$resource_group/providers/Microsoft.Network/applicationGateways/$application_gateway_name

nomaster avatar Oct 04 '23 15:10 nomaster

@kchervonets thanks for reminding me 😄

nomaster avatar Oct 04 '23 15:10 nomaster

Hey friends!

Thank you for the great suggestions.

I tried the following and unfortunately it did not work:

  1. Update the image version in the deployment. This reverts back to 1.5.3 (what was installed at the time the add on was installed) because the cluster manages the add-on lifecycle. No dice... 😔
  2. Tried to upgrade using the aks addon update script. This also did not work and the version stayed on 1.5.3. No cigar...again 👎🏻 😔

I did dome more digging and found that the reason why is because my AKS cluster version for control plance and node pools needed an updrade.

This article also explains very well that "The major/minor version of the add-on is only upgraded when moving to a later Kubernetes minor version." https://learn.microsoft.com/en-us/azure/aks/integrations#add-ons

I upgraded my AKS cluster to the latest recommended patch channel and it updated all my add-ons correctly. 🚀🚀🚀

Hope this helps!

kethahel99 avatar Nov 07 '23 21:11 kethahel99