question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"502 bad gateway" error occurs on the login page after deploy the eshop to a Kubernetes cluster in Azure with AKS-Engine

See original GitHub issue

Reproduce Steps:

  1. Deployed a Kubernetes cluster in Azure with AKS-Engine https://github.com/Azure/aks-engine/blob/master/docs/tutorials/quickstart.md#aks-engine-the-long-way 2)Setup Helm and Tiller $ kubectl apply -f helm-rbac.yaml $ helm init --history-max 200 --service-account tiller --node-selectors “beta.kubernetes.io/os=linux” 3)Create a static IP and set the dns az network public-ip create --resource-group eshop-aks-engine --name eshop-nginx-ingress-ip --sku Standard --allocation-method static --dns-name eshop-akse-cluster --query publicIp.ipAddress -o tsv 4)Create an ingress controller with a static public IP address in Azure Kubernetes Service $ helm install --name nginx-ingress --namespace ingress-nginx –set controller.nodeSelector.“beta.kubernetes.io/os”=linux --set defaultBackend.nodeSelector."beta\.kubernetes\.io\/os"=linux –set controller.service.loadBalancerIP=“52.139.175.102” --set controller.service.annotations."service\.beta\.kubernetes\.io/azure-dns-label-name"="eshop-akse-cluster" –set rbac.create=true ` stable/nginx-ingress 5)Install eShopOnContainers using Helm .\deploy-all-aks.ps1 -externalDns eshop-akse-cluster.eastasia.cloudapp.azure.com -aksName eshopaksenginetestcluster -aksRg eshop-aks-engine -imageTag linux-dev -useMesh $false Note: Changed the “ingressValuesFile” to “ingress_values_dockerk8s.yaml” in the deploy-all-aks.ps1 file. 6)View the services image
  2. click “LOGIN” on the http://eshop-akse-cluster.eastasia.cloudapp.azure.com/webmvc page
  3. Enter the User name and Password on the login page and click “[LOG IN]” image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yanglanfang1000commented, May 13, 2020

@eiximenis the kubeconfig file has been transfered to you. Please let me know if you need any more details.

0reactions
mvelosopcommented, May 21, 2020

Closing this issue now but feel free to comment, will reopen if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure application gateway giving BAD Gateway 502
Hi everyone, When deploying ingress with Azure Kubernetes service with Azure Application Gateway enabled at the cluster level.
Read more >
How to Fix Kubernetes '502 Bad Gateway' Error
A 502 Bad Gateway error is an 5xx server error that indicates a server received an invalid response from a proxy or gateway...
Read more >
Getting 502 Bad gateway errors intermittently in Azure ...
we have recently shifted production instance of our app from VM into Kubernetes environment and very randomly at some times it's giving 502...
Read more >
Troubleshooting 502 Bad Gateway with nginx-ingress ...
This error typically occurs when a server acting as a gateway or proxy receives an invalid response from an upstream server. In the...
Read more >
Unable to reach deployed applications for Runtime Fabric ...
An application has been successfully deployed and inbound traffic enabled to it but every attempt results in a 502 Bad Gateway reply.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found