如何通过ingress让外部可以访问milvus #24299
Replies: 3 comments
-
@580825 what kind of ingress controller do you use? And you can check the ingress controller log to verify wheher the ingress config is valid. |
Beta Was this translation helpful? Give feedback.
-
ingress controller: ingress-nginx-controller try curl: ` nginx controller log: 2023/05/23 01:29:09 [error] 2168#2168: *5029086 upstream sent no valid HTTP/1.0 header while reading response header from upstream, client: 10.12.6.66, server: milvusgrpc.test.com.cn, request: "GET / HTTP/1.1", upstream: "http://10.44.14.14:19530/", host: "milvusgrpc.test.com.cn" try python sdk: connections.connect("default", host="milvusgrpc.test.com", port="80", secure=False) Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): ` nginx controller does not have any log |
Beta Was this translation helpful? Give feedback.
-
the same problem, i use dns domain can deal with it. But any tcp grpc loadbalancer can not pass . Any Update ? |
Beta Was this translation helpful? Give feedback.
-
milvus是用 k8s 搭建的集群版本,通过 svc 访问全部正常,现在想让非 k8s 节点也访问,于是手动配置 ingress,具体配置如下:
`apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/cors-allow-headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,openID,audiotoken
nginx.ingress.kubernetes.io/enable-cors: 'true'
nginx.ingress.kubernetes.io/ssl-redirect: 'false'
name: milvusgrpc-ingress
namespace: milvus
spec:
rules:
http:
paths:
service:
name: test-milvus
port:
number: 19530
path: /
pathType: Prefix`
现在 telnet milvusgrpc.test.com.cn 80 没问题,但用 python sdk 访问 这个地址,直接超时,不知道如何排错,希望大佬指点下,多谢
Beta Was this translation helpful? Give feedback.
All reactions