Hi Chao, Thanks for your reply. Sorry for some delay. Will get back soon. Rupinder
On Thu, Oct 28, 2021 at 1:57 PM Chao Zhang <[email protected]> wrote: > Hi! > > Could you check out whether the httpbin service was deployed correctly, > and it’s inside the same namespace with this ApisixRoute object. > > Chao Zhang > https://github.com/tokers > > On October 28, 2021 at 13:50:12, Rupinder Singh ([email protected]) > wrote: > > correction in the first line: # > > #httpbin-route.yaml > apiVersion: apisix.apache.org/v2beta2 > kind: ApisixRoute > metadata: > name: httpserver-route > spec: > http: > - name: rule1 > match: > hosts: > - local.httpbin.org > paths: > - /* > backends: > - serviceName: httpbin > - servicePort: 80 > > On Thu, Oct 28, 2021 at 11:13 AM Chao Zhang <[email protected]> wrote: > >> Hi! >> >> Could you show the ApisixRoute definition? It seems that it refers to a >> non-existent service. >> >> Chao Zhang >> https://github.com/tokers >> >> On October 25, 2021 at 02:33:48, Rupinder Singh ([email protected]) >> wrote: >> >> Hi Chao, >> Thanks for pointing out. That's right. I'm sorry I kind of overlooked it >> due to a couple of reasons. >> >> However, I now have different errors; my immediate goal is to get my >> installation up so that I can come back later again and again for >> experiments :) Would need some more help from you. >> >> $kubectl exec -it -n ingress-apisix apisix-69459554d4-cb7hg -- curl >> http://127.0.0.1:9080/headers -H 'Host: local.httpbin.org' >> Defaulted container "apisix" out of: apisix, wait-etcd (init) >> {"error_msg":"404 Route Not Found"} >> >> The logs for apex-ingress-controller pod are as follows: >> 2021-10-24T20:28:44+08:00 info ingress/ingress.go:112 apisix ingress >> controller started >> 2021-10-24T20:28:44+08:00 info ingress/ingress.go:114 version: >> Version: 1.3.0 >> Git SHA: no-git-module >> Go Version: go1.13.8 >> Building OS/Arch: linux/amd64 >> Running OS/Arch: linux/amd64 >> >> 2021-10-24T20:28:44+08:00 info ingress/ingress.go:120 use configuration >> { >> "cert_file": "/etc/webhook/certs/cert.pem", >> "key_file": "/etc/webhook/certs/key.pem", >> "log_level": "info", >> "log_output": "stderr", >> "http_listen": ":8080", >> "https_listen": ":8443", >> "enable_profiling": true, >> "kubernetes": { >> "kubeconfig": "", >> "resync_interval": "6h0m0s", >> "app_namespaces": [ >> "" >> ], >> "election_id": "ingress-apisix-leader", >> "ingress_class": "apisix", >> "ingress_version": "networking/v1", >> "watch_endpoint_slices": false, >> "apisix_route_version": "apisix.apache.org/v2beta1" >> }, >> "apisix": { >> "default_cluster_name": "default", >> "default_cluster_base_url": " >> http://apisix-admin.ingress-apisix.svc.cluster.local:9180/apisix/admin", >> "default_cluster_admin_key": "edd1c9f034335f136f87ad84b625c8f1", >> "base_url": " >> http://apisix-admin.ingress-apisix.svc.cluster.local:9180/apisix/admin", >> "admin_key": "edd1c9f034335f136f87ad84b625c8f1" >> } >> } >> 2021-10-24T20:28:44+08:00 warn api/server.go:71 failed to load x509 key >> pair, will not start admission server {"Error": "open >> /etc/webhook/certs/cert.pem: no such file or directory", "CertFilePath": >> "/etc/webhook/certs/cert.pem", "KeyFilePath": "/etc/webhook/certs/key.pem"} >> I1024 20:28:44.942199 1 leaderelection.go:243] attempting to >> acquire leader lease ingress-apisix/ingress-apisix-leader... >> 2021-10-24T20:28:44+08:00 info ingress/controller.go:290 LeaderElection >> {"message": "apisix-ingress-controller-678d8b5f6d-64gtk became leader", >> "event_type": "Normal"} >> I1024 20:28:44.967809 1 leaderelection.go:253] successfully >> acquired lease ingress-apisix/ingress-apisix-leader >> 2021-10-24T20:28:44+08:00 warn ingress/controller.go:328 found a new >> leader apisix-ingress-controller-678d8b5f6d-64gtk >> 2021-10-24T20:28:44+08:00 info ingress/controller.go:370 controller tries >> to leading ... {"namespace": "ingress-apisix", "pod": >> "apisix-ingress-controller-678d8b5f6d-64gtk"} >> 2021-10-24T20:28:44+08:00 info apisix/cluster.go:344 syncing schema >> {"cluster": "default"} >> 2021-10-24T20:28:44+08:00 info apisix/cluster.go:155 syncing cache >> {"cluster": "default"} >> 2021-10-24T20:28:44+08:00 warn apisix/cluster.go:304 waiting cluster >> default to ready, it may takes a while >> 2021-10-24T20:28:44+08:00 info apisix/cluster.go:159 cache synced >> {"cost_time": "15.841049ms", "cluster": "default"} >> 2021-10-24T20:28:44+08:00 warn apisix/cluster.go:315 cluster default now >> is ready, cost time 17.610775ms >> W1024 20:28:44.997135 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:44.997478 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:44.997550 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:44.997916 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:44.998787 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:44.999452 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:44.999725 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:45.000896 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:45.000960 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:45.001024 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:45.195737 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> 2021-10-24T20:28:45+08:00 info ingress/controller.go:482 controller now >> is running as leader {"namespace": "ingress-apisix", "pod": >> "apisix-ingress-controller-678d8b5f6d-64gtk"} >> 2021-10-24T20:28:45+08:00 info ingress/apisix_upstream.go:58 >> ApisixUpstream controller started >> 2021-10-24T20:28:45+08:00 info ingress/ingress.go:58 ingress controller >> started >> 2021-10-24T20:28:45+08:00 info ingress/apisix_route.go:57 ApisixRoute >> controller started >> 2021-10-24T20:28:45+08:00 info ingress/apisix_cluster_config.go:57 >> ApisixClusterConfig controller started >> 2021-10-24T20:28:45+08:00 info ingress/apisix_tls.go:58 ApisixTls >> controller started >> 2021-10-24T20:28:45+08:00 info ingress/endpoint.go:56 endpoints >> controller started >> 2021-10-24T20:28:45+08:00 info ingress/secret.go:62 secret controller >> started >> 2021-10-24T20:28:45+08:00 info ingress/pod.go:47 pod controller started >> 2021-10-24T20:28:45+08:00 info ingress/apisix_consumer.go:56 >> ApisixConsumer controller started >> W1024 20:28:45.396497 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> W1024 20:28:45.397387 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> [GIN] 2021/10/24 - 20:28:45 | 200 | 1.027112ms | 172.17.0.1 | GET >> "/healthz" >> [GIN] 2021/10/24 - 20:28:45 | 200 | 33.506µs | 172.17.0.1 | GET >> "/healthz" >> 2021-10-24T20:28:46+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> 2021-10-24T20:28:46+08:00 warn apisix/upstream.go:70 upstream not found >> {"name": "knative-serving_autoscaler-bucket-00-of-01_8080", "url": " >> http://apisix-admin.ingress-apisix.svc.cluster.local:9180/apisix/admin/upstreams/82dcbec1", >> "cluster": "default"} >> 2021-10-24T20:28:46+08:00 warn ingress/controller.go:586 upstream is not >> referenced {"cluster": "name=default; base_url= >> http://apisix-admin.ingress-apisix.svc.cluster.local:9180/apisix/admin", >> "upstream": "knative-serving_autoscaler-bucket-00-of-01_8080"} >> ... >> [GIN] 2021/10/24 - 20:40:27 | 200 | 115.64µs | 172.17.0.1 | GET >> "/healthz" >> 2021-10-24T20:40:28+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> 2021-10-24T20:40:30+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> 2021-10-24T20:40:32+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> 2021-10-24T20:40:34+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> [GIN] 2021/10/24 - 20:40:35 | 200 | 22.973µs | 172.17.0.1 | GET >> "/healthz" >> 2021-10-24T20:40:35+08:00 error translation/util.go:66 ApisixRoute refers >> to non-existent Service port {"namespace": "default", "port": "0"} >> 2021-10-24T20:40:35+08:00 error translation/apisix_route.go:262 failed to >> translate traffic-split plugin {"error": "service \"\" not found", >> "ApisixRoute": >> {"metadata":{"name":"httpserver-route","namespace":"default","uid":"93be6893-16e3-44c2-ab32-0f7bfa8a173f","resourceVersion":"1886873","generation":1,"creationTimestamp":"2021-10-24T12:40:34Z","annotations":{" >> kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\" >> apisix.apache.org/v2beta1\ <http://apisix.apache.org/v2beta1%5C> >> ",\"kind\":\"ApisixRoute\",\"metadata\":{\"annotations\":{},\"name\":\"httpserver-route\",\"namespace\":\"default\"},\"spec\":{\"http\":[{\"backends\":[{\"serviceName\":\"httpbin\"},{\"servicePort\":80}],\"match\":{\"hosts\":[\" >> local.httpbin.org >> \"],\"paths\":[\"/*\"]},\"name\":\"rule1\"}]}}\n"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":" >> apisix.apache.org/v2beta1 >> ","time":"2021-10-24T12:40:34Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f: >> kubectl.kubernetes.io/last-applied-configuration >> ":{}}},"f:spec":{".":{},"f:http":{}}}}]},"spec":{"http":[{"name":"rule1","match":{"paths":["/*"],"hosts":[" >> local.httpbin.org >> "]},"backend":{"serviceName":"","servicePort":0,"weight":null},"backends":[{"serviceName":"httpbin","servicePort":0,"weight":null},{"serviceName":"","servicePort":80,"weight":null}],"websocket":false,"authentication":{"enable":false,"type":"","keyauth":{}}}]},"status":{}}} >> 2021-10-24T20:40:35+08:00 error ingress/apisix_route.go:170 failed to >> translate ApisixRoute v2beta1 {"error": "service \"\" not found", "object": >> {}} >> 2021-10-24T20:40:35+08:00 warn ingress/apisix_route.go:292 sync >> ApisixRoute failed, will retry {"object": >> {"Type":1,"Object":{"Key":"default/httpserver-route","OldObject":null,"GroupVersion":" >> apisix.apache.org/v2beta1"},"Tombstone":null}, "error": "service \"\" >> not found"} >> W1024 20:40:35.989069 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> 2021-10-24T20:40:36+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> 2021-10-24T20:40:36+08:00 error translation/util.go:66 ApisixRoute refers >> to non-existent Service port {"namespace": "default", "port": "0"} >> 2021-10-24T20:40:36+08:00 error translation/apisix_route.go:262 failed to >> translate traffic-split plugin {"error": "service \"\" not found", >> "ApisixRoute": >> {"metadata":{"name":"httpserver-route","namespace":"default","uid":"93be6893-16e3-44c2-ab32-0f7bfa8a173f","resourceVersion":"1886873","generation":1,"creationTimestamp":"2021-10-24T12:40:34Z","annotations":{" >> kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\" >> apisix.apache.org/v2beta1\ <http://apisix.apache.org/v2beta1%5C> >> ",\"kind\":\"ApisixRoute\",\"metadata\":{\"annotations\":{},\"name\":\"httpserver-route\",\"namespace\":\"default\"},\"spec\":{\"http\":[{\"backends\":[{\"serviceName\":\"httpbin\"},{\"servicePort\":80}],\"match\":{\"hosts\":[\" >> local.httpbin.org >> \"],\"paths\":[\"/*\"]},\"name\":\"rule1\"}]}}\n"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":" >> apisix.apache.org/v2beta1 >> ","time":"2021-10-24T12:40:34Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f: >> kubectl.kubernetes.io/last-applied-configuration >> ":{}}},"f:spec":{".":{},"f:http":{}}}}]},"spec":{"http":[{"name":"rule1","match":{"paths":["/*"],"hosts":[" >> local.httpbin.org"]},"backend":{"serviceName":"","servicePort":0,"weight":null},"backends":[{"serviceName":"httpbin","servicePort":0,"weight":null},{"serviceName":"","servicePort":80,"weight":null}],"websocket":false,"authentication":{"enable":false,"type":"","keyauth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","lastTransitionTime":"2021-10-24T12:40:35Z","reason":"ResourceSyncAborted","message":"service >> \"\" not found"}]}}} >> 2021-10-24T20:40:36+08:00 error ingress/apisix_route.go:170 failed to >> translate ApisixRoute v2beta1 {"error": "service \"\" not found", "object": >> {}} >> 2021-10-24T20:40:36+08:00 warn ingress/apisix_route.go:292 sync >> ApisixRoute failed, will retry {"object": >> {"Type":1,"Object":{"Key":"default/httpserver-route","OldObject":null,"GroupVersion":" >> apisix.apache.org/v2beta1"},"Tombstone":null}, "error": "service \"\" >> not found"} >> W1024 20:40:37.012982 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> [GIN] 2021/10/24 - 20:40:37 | 200 | 30.883µs | 172.17.0.1 | GET >> "/healthz" >> 2021-10-24T20:40:38+08:00 error translation/util.go:66 ApisixRoute refers >> to non-existent Service port {"namespace": "default", "port": "0"} >> 2021-10-24T20:40:38+08:00 error translation/apisix_route.go:262 failed to >> translate traffic-split plugin {"error": "service \"\" not found", >> "ApisixRoute": >> {"metadata":{"name":"httpserver-route","namespace":"default","uid":"93be6893-16e3-44c2-ab32-0f7bfa8a173f","resourceVersion":"1886873","generation":1,"creationTimestamp":"2021-10-24T12:40:34Z","annotations":{" >> kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\" >> apisix.apache.org/v2beta1\ <http://apisix.apache.org/v2beta1%5C> >> ",\"kind\":\"ApisixRoute\",\"metadata\":{\"annotations\":{},\"name\":\"httpserver-route\",\"namespace\":\"default\"},\"spec\":{\"http\":[{\"backends\":[{\"serviceName\":\"httpbin\"},{\"servicePort\":80}],\"match\":{\"hosts\":[\" >> local.httpbin.org >> \"],\"paths\":[\"/*\"]},\"name\":\"rule1\"}]}}\n"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":" >> apisix.apache.org/v2beta1 >> ","time":"2021-10-24T12:40:34Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f: >> kubectl.kubernetes.io/last-applied-configuration >> ":{}}},"f:spec":{".":{},"f:http":{}}}}]},"spec":{"http":[{"name":"rule1","match":{"paths":["/*"],"hosts":[" >> local.httpbin.org"]},"backend":{"serviceName":"","servicePort":0,"weight":null},"backends":[{"serviceName":"httpbin","servicePort":0,"weight":null},{"serviceName":"","servicePort":80,"weight":null}],"websocket":false,"authentication":{"enable":false,"type":"","keyauth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","lastTransitionTime":"2021-10-24T12:40:35Z","reason":"ResourceSyncAborted","message":"service >> \"\" not found"}]}}} >> 2021-10-24T20:40:38+08:00 error ingress/apisix_route.go:170 failed to >> translate ApisixRoute v2beta1 {"error": "service \"\" not found", "object": >> {}} >> 2021-10-24T20:40:38+08:00 warn ingress/apisix_route.go:292 sync >> ApisixRoute failed, will retry {"object": >> {"Type":1,"Object":{"Key":"default/httpserver-route","OldObject":null,"GroupVersion":" >> apisix.apache.org/v2beta1"},"Tombstone":null}, "error": "service \"\" >> not found"} >> W1024 20:40:38.042515 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> 2021-10-24T20:40:38+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> 2021-10-24T20:40:39+08:00 error translation/util.go:66 ApisixRoute refers >> to non-existent Service port {"namespace": "default", "port": "0"} >> 2021-10-24T20:40:39+08:00 error translation/apisix_route.go:262 failed to >> translate traffic-split plugin {"error": "service \"\" not found", >> "ApisixRoute": >> {"metadata":{"name":"httpserver-route","namespace":"default","uid":"93be6893-16e3-44c2-ab32-0f7bfa8a173f","resourceVersion":"1886873","generation":1,"creationTimestamp":"2021-10-24T12:40:34Z","annotations":{" >> kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\" >> apisix.apache.org/v2beta1\ <http://apisix.apache.org/v2beta1%5C> >> ",\"kind\":\"ApisixRoute\",\"metadata\":{\"annotations\":{},\"name\":\"httpserver-route\",\"namespace\":\"default\"},\"spec\":{\"http\":[{\"backends\":[{\"serviceName\":\"httpbin\"},{\"servicePort\":80}],\"match\":{\"hosts\":[\" >> local.httpbin.org >> \"],\"paths\":[\"/*\"]},\"name\":\"rule1\"}]}}\n"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":" >> apisix.apache.org/v2beta1 >> ","time":"2021-10-24T12:40:34Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f: >> kubectl.kubernetes.io/last-applied-configuration >> ":{}}},"f:spec":{".":{},"f:http":{}}}}]},"spec":{"http":[{"name":"rule1","match":{"paths":["/*"],"hosts":[" >> local.httpbin.org"]},"backend":{"serviceName":"","servicePort":0,"weight":null},"backends":[{"serviceName":"httpbin","servicePort":0,"weight":null},{"serviceName":"","servicePort":80,"weight":null}],"websocket":false,"authentication":{"enable":false,"type":"","keyauth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","lastTransitionTime":"2021-10-24T12:40:35Z","reason":"ResourceSyncAborted","message":"service >> \"\" not found"}]}}} >> 2021-10-24T20:40:39+08:00 error ingress/apisix_route.go:170 failed to >> translate ApisixRoute v2beta1 {"error": "service \"\" not found", "object": >> {}} >> 2021-10-24T20:40:39+08:00 warn ingress/apisix_route.go:292 sync >> ApisixRoute failed, will retry {"object": >> {"Type":1,"Object":{"Key":"default/httpserver-route","OldObject":null,"GroupVersion":" >> apisix.apache.org/v2beta1"},"Tombstone":null}, "error": "service \"\" >> not found"} >> W1024 20:40:39.062095 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> 2021-10-24T20:40:40+08:00 error translation/util.go:66 ApisixRoute refers >> to non-existent Service port {"namespace": "default", "port": "0"} >> 2021-10-24T20:40:40+08:00 error translation/apisix_route.go:262 failed to >> translate traffic-split plugin {"error": "service \"\" not found", >> "ApisixRoute": >> {"metadata":{"name":"httpserver-route","namespace":"default","uid":"93be6893-16e3-44c2-ab32-0f7bfa8a173f","resourceVersion":"1886873","generation":1,"creationTimestamp":"2021-10-24T12:40:34Z","annotations":{" >> kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\" >> apisix.apache.org/v2beta1\ <http://apisix.apache.org/v2beta1%5C> >> ",\"kind\":\"ApisixRoute\",\"metadata\":{\"annotations\":{},\"name\":\"httpserver-route\",\"namespace\":\"default\"},\"spec\":{\"http\":[{\"backends\":[{\"serviceName\":\"httpbin\"},{\"servicePort\":80}],\"match\":{\"hosts\":[\" >> local.httpbin.org >> \"],\"paths\":[\"/*\"]},\"name\":\"rule1\"}]}}\n"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":" >> apisix.apache.org/v2beta1 >> ","time":"2021-10-24T12:40:34Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f: >> kubectl.kubernetes.io/last-applied-configuration >> ":{}}},"f:spec":{".":{},"f:http":{}}}}]},"spec":{"http":[{"name":"rule1","match":{"paths":["/*"],"hosts":[" >> local.httpbin.org"]},"backend":{"serviceName":"","servicePort":0,"weight":null},"backends":[{"serviceName":"httpbin","servicePort":0,"weight":null},{"serviceName":"","servicePort":80,"weight":null}],"websocket":false,"authentication":{"enable":false,"type":"","keyauth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","lastTransitionTime":"2021-10-24T12:40:35Z","reason":"ResourceSyncAborted","message":"service >> \"\" not found"}]}}} >> 2021-10-24T20:40:40+08:00 error ingress/apisix_route.go:170 failed to >> translate ApisixRoute v2beta1 {"error": "service \"\" not found", "object": >> {}} >> 2021-10-24T20:40:40+08:00 warn ingress/apisix_route.go:292 sync >> ApisixRoute failed, will retry {"object": >> {"Type":1,"Object":{"Key":"default/httpserver-route","OldObject":null,"GroupVersion":" >> apisix.apache.org/v2beta1"},"Tombstone":null}, "error": "service \"\" >> not found"} >> W1024 20:40:40.088784 1 warnings.go:70] apisix.apache.org/v2beta1 >> ApisixRoute is deprecated; use apisix.apache.org/v2beta2 ApisixRoute >> 2021-10-24T20:40:40+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> 2021-10-24T20:40:42+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> 2021-10-24T20:40:44+08:00 info ingress/controller.go:542 service >> kube-system/k8s.io-minikube-hostpath not found >> ... >> >> regards >> Rupinder >> >> >> >> >> On Sun, Oct 24, 2021 at 4:09 PM Chao Zhang <[email protected]> wrote: >> >>> Hi! >>> >>> The error reason is self-descriptive, the backends field is an array, >>> not a map. >>> >>> Chao Zhang >>> https://github.com/tokers >>> >>> On October 24, 2021 at 13:48:23, Rupinder Singh ([email protected]) >>> wrote: >>> >>> Hi, >>> Thanks for responding. >>> >>> APISIXversion is 2.10.0 and the controller version is 1.3.0. I think I'd >>> tried "backends" too. Anyway, I tried creating the ApisixRoute again. This >>> is what I get, the same as I got in earlier tries. >>> >>> error: error validating "httpbin-route.yaml": error validating data: >>> ValidationError(ApisixRoute.spec.http[0].backends): invalid type for >>> org.apache.apisix.v2beta1.ApisixRoute.spec.http.backends: got "map", >>> expected "array"; if you choose to ignore these errors, turn validation off >>> with --validate=false >>> >>> However, I now recall (could reproduce) that with "backend," >>> *initially* >>> >>> Warning: apisix.apache.org/v2beta1 ApisixRoute is deprecated; use >>> apisix.apache.org/v2beta2 ApisixRoute >>> apisixroute.apisix.apache.org/httpserver-route created >>> >>> And that made me change apiversion to apisix.apache.org/v2beta2and try >>> both "backend" and "backends" after deleting previously created resources. >>> This is what I'd got, >>> >>> error: error validating "httpbin-route.yaml": error validating data: >>> ValidationError(ApisixRoute.spec.http[0].backends): invalid type for >>> org.apache.apisix.v2beta2.ApisixRoute.spec.http.backends: got "map", >>> expected "array"; if you choose to ignore these errors, turn validation off >>> with --validate=false >>> >>> error: error validating "httpbin-route.yaml": error validating data: >>> [ValidationError(ApisixRoute.spec.http[0]): unknown field "backend" in >>> org.apache.apisix.v2beta2.ApisixRoute.spec.http, >>> ValidationError(ApisixRoute.spec.http[0]): missing required field >>> "backends" in org.apache.apisix.v2beta2.ApisixRoute.spec.http]; if you >>> choose to ignore these errors, turn validation off with --validate=false >>> >>> regards >>> Rupinder >>> >>> >>> On Sun, Oct 24, 2021 at 8:58 AM Chao Zhang <[email protected]> wrote: >>> >>>> Hi! >>>> >>>> So what’s the version of your apisix-ingress-controller? Since v1.3 we >>>> dropped the support of `backend` field in ApisixRoute, so you should use >>>> backends instead. >>>> >>>> Chao Zhang >>>> https://github.com/tokers >>>> >>>> On October 23, 2021 at 19:07:10, Rupinder Singh ([email protected]) >>>> wrote: >>>> >>>> ---------- Forwarded message --------- >>>> From: Rupinder Singh <[email protected]> >>>> Date: Fri, Oct 22, 2021 at 9:01 PM >>>> Subject: Ingress APISIX install on Minikube >>>> To: <[email protected]> >>>> >>>> >>>> Hi, >>>> >>>> Following >>>> https://apisix.apache.org/docs/ingress-controller/deployments/minikube/ >>>> and >>>> testing with >>>> >>>> https://apisix.apache.org/docs/ingress-controller/practices/proxy-the-httpbin-service/ >>>> , I 'm getting >>>> >>>> Defaulted container "apisix" out of: apisix, wait-etcd (init) >>>> <html> >>>> <head><title>401 Authorization Required</title></head> >>>> <body> >>>> <center><h1>401 Authorization Required</h1></center> >>>> <hr><center>openresty</center> >>>> </body> >>>> </html> >>>> >>>> So, I looked up these discussions >>>> https://github.com/apache/apisix-ingress-controller/issues/554 >>>> https://github.com/apache/apisix-ingress-controller/issues/338 >>>> >>>> So, is the api version and "backend" fied ok? Is it 'backends' ? >>>> Request >>>> help. >>>> >>>> regards >>>> Rupinder >>>> >>>>
