无法使用路径前缀访问 kibana 服务

时间:2021-02-14 12:22:00

标签: kubernetes kubernetes-ingress nginx-ingress docker-for-windows docker-desktop

我按照官方文档 --- https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html 在我的本地机器上使用 Docker 桌面 for windows 创建了具有弹性搜索和 kibana 的集群。我还创建了nginx入口控制器和入口资源。请在下面找到定义文件

kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/rewrite-target: /   #new 
    nginx.ingress.kubernetes.io/backend-protocol: https,http
  name: example-app
  namespace: example-app
spec:
  tls:
  - hosts:
    - marcel.test
    secretName: quickstart-es-http-certs-public
  rules:
  - host: shubham.test
    http:
      paths:
      - path: /netflix
        backend:
          serviceName: example-service
          servicePort: 2000
      - path: /
        backend:
          serviceName: elasticsearch-kb-http
          servicePort: 5601
The example-app that i created display hello world with the https://shubham.test/netflix but when I route traffic to kibana it says 503 error the path I hit is `https://shubham.test/` but kibana is accessible at localhost:5601
Please help me know why this is happening

0 个答案:

没有答案
相关问题