I had a AKS with AGIC addon enabled and I have to switch to AGIC as a helm chart (https://learn.microsoft.com/en-us/azure/application-gateway/ingress-controller-install-existing) in an attempt to connect two AKS clusters to a single Application Gateway but how can I change how AGIC was setup? I had though running disable addon would do the trick but when I tried to apply the helm-config file I was shown this error message:
Error: INSTALLATION FAILED: Unable to continue with install: IngressClass "azure-application-gateway" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "ingress-azure-1710484411"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "ingress-nginx"
Also for some reason, I have to switch the Gateway's subnet route table manually when I connect it to one of each AKS's services which kind of defeats the purpose of being able to connect 2 AKS to the gateway, was wondering if there is a solution for that as well or a way to work around that. Thanks!