We require guidance in building application gateway from scratch

Domagoj Leder 0 Reputation points
2023-12-13T15:36:56.46+00:00

Hi team,

We are building a new environment in the cluster and we have manually created an ingress- application gateway instead of using helm.

Now issues we face are on the pods level, when pods destroy and create themselves for certain services, the new IP is not reflected in the ingress- application-gateway for that test environment. Requires manual intervention and configuration.

We plan on destroying this app gateway and raising new one via helm but would like guidance steps on what to watch out and how to configure it.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
{count} votes

1 answer

Sort by: Most helpful
  1. Anveshreddy Nimmala 3,560 Reputation points Moderator
    2023-12-14T05:40:13.0933333+00:00

    Hello Domagoj Leder,

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Before destroying the existing application gateway, please make sure that you have a backup of the configuration settings.

    You can use the Get-AzApplicationGatewayConfig cmdlet to export the configuration settings to a file.

    Once you have the backup, you can proceed with the following steps to deploy a new application gateway using Helm:

    Install Helm on your machine if you haven't already done so.

    You can follow the instructions provided in the official Helm documentation.

    https://helm.sh/docs/intro/install/

    Add the Azure Application Gateway Helm repository to your Helm client:

    <span class=" active-doc-2" data-doc-items="2">helm repo add application-gateway-kubernetes-ingress https<a href="#doc-pos=2" data-tag-index="2"></a></span>://appgwingress.blob.core.windows.net/ingress-azure-helm-package/

    Update the Helm repository

    helm repo update

    Create a values file with the configuration settings for your new application gateway. You can use the sample values file provided in the Helm repository as a starting point:

    helm show values application-gateway-kubernetes-ingress/ingress-azure > values.yaml

    Modify the values file to match your requirements.

    You can refer to the official documentation for the available configuration options

    https://learn.microsoft.com/en-us/azure/application-gateway/tutorial-ingress-controller-add-on-new

    Install the Helm chart with the modified values file:

    helm install my-app-gateway application-gateway-kubernetes-ingress/ingress-azure -f values.yaml

    Replace my-app-gateway with the name you want to give to your new application gateway.

    Verify that the new application gateway has been deployed successfully by checking the status of the Helm release:

    helm status my-app-gateway

    You can also check the status of the application gateway in the Azure portal.

    hope this helps. Let me know if you have any further questions.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.