apache / apisix-helm-chart

Apache APISIX Helm Chart
https://apisix.apache.org/
Apache License 2.0
231 stars 208 forks source link

help request: Declarative deployed routes are not added anymore (0.11.3 helm) #409

Open wofr opened 1 year ago

wofr commented 1 year ago

Description

The following routes works fine when I use apisix 0.11.0 (helm deplyoment). I do the deplyoment of the route in a declarative way. When I switch to use apisxi 0.11.3 or 0.11.2 the deplyoment does not work anymore. The only adaption I did on the route was use (apiVersion: apisix.apache.org/v2 instead of v2beta3)

Here the simple demo route I would like to deploy.

apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
  name: foo-bar-route
spec:
  http:
  - name: foo
    match:
      hosts:
      - foo.com
      paths:
      - "/foo*"
    backends:
    - serviceName: foo
      servicePort: 80
  - name: bar
    match:
      paths:
        - "/bar"
    backends:
    - serviceName: bar
      servicePort: 80

Environment

tao12345666333 commented 1 year ago

Does 0.11.1 work fine?

I think you should update the CRD file manually

wofr commented 1 year ago

I did not try 0.11.1, I will do it by now.

I dropped the whole deployment of apisix so the CRDs version should be fine

wofr commented 1 year ago

With 0.11.1 its working!

One funny observation I made, is that with 0.11.1 (and 0.11.0) the following call ist working and it does return the routes

kubectl exec -n apisix deploy/apisix-staging -- curl -s http://127.0.0.1:9180/apisix/admin/routes -H 'X-API-Key: MySecret'

With 0.11.2 (and 0.11.3)

kubectl exec -n apisix deploy/apisix-staging -- curl -s http://127.0.0.1:9180/apisix/admin/routes -H 'X-API-Key: MySecret' I got the following error error: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "02bd185efd8594fb2e761f877be8974876c6b940701b3bc4be5d6496c552dd0b": OCI runtime exec failed: exec failed: unable to start container process: exec: "curl": executable file not found in $PATH: unknown