olddriver4 commented on issue #2207: URL: https://github.com/apache/apisix-ingress-controller/issues/2207#issuecomment-2065594890
> ### Description > ``` > apiVersion: networking.k8s.io/v1 > kind: Ingress > metadata: > name: base-grpc > namespace: app > annotations: > kubernetes.io/ingress.class: apisix > k8s.apisix.apache.org/upstream-scheme: grpc > spec: > rules: > - host: "base-grpc.app.ntrnl" > http: > paths: > - path: /* > pathType: Prefix > backend: > service: > name: base > port: > name: grpc > ``` > > <img alt="image" width="857" src="https://private-user-images.githubusercontent.com/28889568/321500354-20aa3fc8-fa47-45aa-aa91-f6fdbd05238a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTM0OTA5NzcsIm5iZiI6MTcxMzQ5MDY3NywicGF0aCI6Ii8yODg4OTU2OC8zMjE1MDAzNTQtMjBhYTNmYzgtZmE0Ny00NWFhLWFhOTEtZjZmZGJkMDUyMzhhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDE5VDAxMzc1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmMDI2NmIzYjI3N2M5N2Q0MTJlNmJlMjkwZDgwYTFkNDczMGFiN2UwMzc3MzA5Y2JjOTdmZDBiYmEyNjlhZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7BY21bZvlPV2oD7-AEoKXZSyTka37l1sJ8swTYcsRCg"> > `grpcurl -plaintext base-grpc.app.ntrnl:80 list social.base.PortalService` 我确认是生效的,报错如下: `Failed to list methods for service "social.base.PortalService": rpc error: code = Unavailable desc = upstream connect error or disconnect/reset before headers. reset reason: protocol error` > > 我的域名做了host解析,LB使用的是4层TCP协议,想问问这个问题出在哪里,我找了网上的配置都不能解决! 服务绝对没有问题,因为我使用svc host访问是正确的! > > ### Environment > * APISIX version (run `apisix version`): 3.7 > > you would be more like to get help if you translate the issue content to english, thanks > > @shreemaan-abhishek > > `grpcurl -plaintext base-grpc.app.ntrnl:80 list social.base.PortalService` The protocol configured for k8s apisix ingress grpc does not take effect, please help me. The error is reported as follows: `Failed to list methods for service "social.base.PortalService": rpc error: code = Unavailable desc = upstream connect error or disconnect/reset before headers. reset reason: protocol error` > > My domain name has been host-resolved, and LB uses Layer 4 TCP protocol. I would like to know where this problem lies. I have searched for online configurations but can't solve it! There is absolutely no problem with the service, because I use svc host to access it correctly! This is the configuration of the apisix service: ```apiVersion: v1 kind: Service metadata: name: apisix-gateway namespace: apisix labels: app: apisix version: "3.7.0" spec: type: LoadBalancer ports: - name: apisix-gateway-http port: 80 targetPort: 9080 protocol: TCP - name: apisix-gateway-https port: 443 targetPort: 9080 protocol: TCP selector: app: apisix version: "3.7.0"``` The above are all the steps of my configuration. I really don’t have more detailed configuration problems. Could you please help me detect whether it is a configuration problem there or a LB problem? @shreemaan-abhishek -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
