Using the AKS http-addon returns a 503 for my service

自作多情 提交于 2019-12-11 06:59:22

问题


I have a service that I want to expose publicly over http running on AKS. I created a Kubernetes cluster and enabled the HTTP addon following these instructions here. I then launched a service myservicea in namespace mynamespace. And then I created an ingress controller for using the following configuration.

---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: myservicea-ingress
  namespace: mynamespace
  annotations:
    kubernetes.io/ingress.class: addon-http-application-routing
spec:
  rules:
  - host: myservicea.XXXXXXX.westus.aksapp.io
    http:
      paths:
      - backend:
          serviceName: myservicea
          servicePort: 80
        path: /

The domain myservicea.XXXXXXX.westus.aksapp.io is reachable after several minutes, however, I only get an HTTP 503 error. So the ingress controller does not seem to be able to find my service. What could be the issue?


回答1:


Well, if you create the service in a specific namespace. Then maybe you can set the deployment and ingress also in that specific namespace. And you should check in the portal if the host route the request to right namespace. I did the test follow the link you posted with just changing the namespace and it works in my side. The screenshots here:

Hope this will be helpful. If you need more help please give me the message.



来源:https://stackoverflow.com/questions/53603954/using-the-aks-http-addon-returns-a-503-for-my-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!