[GitHub] [apisix-ingress-controller] jikunchong commented on issue #750: request help: how to access istio services (demo: Bookinfo)?

2021-11-23 Thread GitBox


jikunchong commented on issue #750:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/750#issuecomment-976628526


   不知道最终改了什么,现在可以通过 apisix 访问到 productpage 页面了。
   但自动注入的功能还是没有成功。如果哪位成功了,麻烦留个言,先谢了。
   很奇怪的是 kubeshere 向导生成的 bookinfo 示例都注入成功了的,但我自己部署的 httpbin 却没有注入 istio-proxy。


-- 
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-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix-ingress-controller] jikunchong commented on issue #750: request help: how to access istio services (demo: Bookinfo)?

2021-11-22 Thread GitBox


jikunchong commented on issue #750:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/750#issuecomment-975367200


   我就新建了个 mesh-apps 空间,打 istio-injection=enabled 标签,然后部署了个 nginx,也没有自动注入。
   我现在只求手动注入都行,主要是要解决 apisix gateway 的流量能进入 istio 服务就行。
   @tao12345666333  可否再稍微详细说明一下,还有什么关键点被我忽略了?


-- 
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-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix-ingress-controller] jikunchong commented on issue #750: request help: how to access istio services (demo: Bookinfo)?

2021-11-21 Thread GitBox


jikunchong commented on issue #750:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/750#issuecomment-975198103


   没成功,请问除了给空间打 istio-injection=enabled 标签外,还需要做什么?
   ```shell
   sudo kubectl label namespace apisix-system istio-injection=enabled
   sudo kubectl label namespace try-apps istio-injection=enabled
   sudo kubectl get namespace -L istio-injection
   NAME  STATUS   AGE ISTIO-INJECTION
   apisix-system Active   17d enabled
   try-apps  Active   16d enabled
   ```
   我参考 productpage,手动在 apisix 的 Deployment 加注解,重建 Pod,也没看到 istio-proxy sidecar。
   ```yaml
   metadata:
 name: productpage-v1
 namespace: apisix-system
 # ...
 annotations:
   # ...
   servicemesh.kubesphere.io/enabled: 'true'
   spec:
 template:
   metadata:
 annotations:
   sidecar.istio.io/inject: 'true'
   ```
   


-- 
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-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix-ingress-controller] jikunchong commented on issue #750: request help: how to access istio services (demo: Bookinfo)?

2021-11-21 Thread GitBox


jikunchong commented on issue #750:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/750#issuecomment-975010737


   thanks, I try try 


-- 
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-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix-ingress-controller] jikunchong commented on issue #750: request help: how to access istio services (demo: Bookinfo)?

2021-11-21 Thread GitBox


jikunchong commented on issue #750:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/750#issuecomment-974621466






-- 
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-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix-ingress-controller] jikunchong commented on issue #750: request help: how to access istio services (demo: Bookinfo)?

2021-11-20 Thread GitBox


jikunchong commented on issue #750:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/750#issuecomment-974622287


   看 apisix ingress controller 的容器日志是这样的:
   ```
2021-11-20T17:25:50+08:00   error   apisix/route.go:191 failed to 
reflect route delete to cache: not found
   
2021-11-20T17:25:50+08:00   error   apisix/route.go:161 failed to 
create route: unexpected status code 400; error message: {"error_msg":"failed 
to fetch upstream info by upstream id [b3f9690], response code: 404"}
   

   
2021-11-20T17:25:50+08:00   error   ingress/ingress.go:178  failed to sync 
ingress artifacts{"error": "1 error occurred:\n\t* unexpected status 
code 400; error message: {\"error_msg\":\"failed to fetch upstream info by 
upstream id [b3f9690], response code: 404\"}\n\n\n"}
   
2021-11-20T17:25:50+08:00   warningress/ingress.go:191  sync ingress 
failed, will retry {"object": 
{"Type":2,"Object":{"Key":"try-apps/bookinfo-ingress","GroupVersion":"networking/v1","OldObject":{}},"Tombstone":null},
 "error": "1 error occurred:\n\t* unexpected status code 400; error message: 
{\"error_msg\":\"failed to fetch upstream info by upstream id [b3f9690], 
response code: 404\"}\n\n\n"}
   ```


-- 
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-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix-ingress-controller] jikunchong commented on issue #750: request help: how to access istio services (demo: Bookinfo)?

2021-11-20 Thread GitBox


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-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org