You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/20 09:22:57 UTC
[GitHub] [apisix-ingress-controller] jikunchong commented on issue #750: request help: how to access istio services (demo: Bookinfo)?
jikunchong commented on issue #750:
URL: https://github.com/apache/apisix-ingress-controller/issues/750#issuecomment-974621466
请问有成功的示例吗?我之前部署的 httpbin demo 都能正常生成规则,并在 apisix dashboard 中可以看到,并可以正常访问。
```yaml
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: httpbin-ingress
namespace: try-apps
annotations:
k8s.apisix.apache.org/rewrite-target-regex: /httpbin/(.*)
k8s.apisix.apache.org/rewrite-target-regex-template: /$1
kubesphere.io/alias-name: ''
kubesphere.io/creator: admin
kubesphere.io/description: httpbin ingress
spec:
ingressClassName: apisix
rules:
- host: api.domain.local
http:
paths:
- path: /httpbin/
pathType: Prefix
backend:
service:
name: httpbin
port:
number: 8080
```
但换成 istio bookinfo productpage 服务后,就不能生成规则了(访问成果:{"error_msg":"404 Route Not Found"} )。
```yaml
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: bookinfo-ingress
namespace: try-apps
annotations:
k8s.apisix.apache.org/rewrite-target-regex: /bookinfo/(.*)
k8s.apisix.apache.org/rewrite-target-regex-template: /$1
kubesphere.io/creator: admin
kubesphere.io/description: ''
spec:
ingressClassName: apisix
rules:
- host: api.domain.local
http:
paths:
- path: /bookinfo/
pathType: Prefix
backend:
service:
name: productpage
port:
number: 9080
```
所以你说这个 service-resolve-granularity 我也就没法配置。我不知道问题出在哪里了?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org