"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 issueReproduce Steps:
- 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 - click “LOGIN” on the http://eshop-akse-cluster.eastasia.cloudapp.azure.com/webmvc page
- Enter the User name and Password on the login page and click “[LOG IN]”
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eiximenis the kubeconfig file has been transfered to you. Please let me know if you need any more details.
Closing this issue now but feel free to comment, will reopen if needed.