Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find endpoint cloud/httpserver err%!(EXTRA string=endpoints "httpserver" not found) #30

Closed
dayongi opened this issue Sep 9, 2020 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@dayongi
Copy link
Contributor

dayongi commented Sep 9, 2020

I have finished deployment of the APISIX ingress controller, but when i use this demo i get following error:

demo:

kubectl apply -f - <<EOF
apiVersion: apisix.apache.org/v1
kind: ApisixRoute
metadata:
  name: httpserver-route
  namespace: cloud
spec:
  rules:
  - host: test.apisix.apache.org
    http:
      paths:
      - backend:
          serviceName: httpserver
          servicePort: 8080
        path: /hello*
EOF

ingress controller error log:

E0909 16:07:57.815863       1 ep.go:38] find endpoint cloud/httpserver err%!(EXTRA string=endpoints "httpserver" not found)
E0909 16:07:57.817280       1 builder.go:208] solver upstream failed, update upstream to etcd failed, err: http post failed, url: http://10.25.78.50:31700/apisix/admin/upstreams, err: status: 400, body: {"error_msg":"invalid configuration: property \"nodes\" validation failed: object matches none of the requireds"}

I'm sure, the k8s master node hava been saved cofiguration to etcd,i use kubectl get ApisixRoute httpserver-route -n cloud -o yaml got that.

[root@k8s-master eplat-yamls]# kubectl get ApisixRoute httpserver-route -n cloud -o yaml
apiVersion: apisix.apache.org/v1
kind: ApisixRoute
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"apisix.apache.org/v1","kind":"ApisixRoute","metadata":{"annotations":{},"name":"httpserver-route","namespace":"cloud"},"spec":{"rules":[{"host":"test.apisix.apache.org","http":{"paths":[{"backend":{"serviceName":"httpserver","servicePort":8080},"path":"/hello*"}]}}]}}
  creationTimestamp: "2020-09-09T08:07:49Z"
  generation: 1
  managedFields:
  - apiVersion: apisix.apache.org/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:kubectl.kubernetes.io/last-applied-configuration: {}
      f:spec:
        .: {}
        f:rules: {}
    manager: kubectl-client-side-apply
    operation: Update
    time: "2020-09-09T08:07:49Z"
  name: httpserver-route
  namespace: cloud
  resourceVersion: "600363"
  selfLink: /apis/apisix.apache.org/v1/namespaces/cloud/apisixroutes/httpserver-route
  uid: 737ca448-88c5-4b34-a80b-6f51d8f980c3
spec:
  rules:
  - host: test.apisix.apache.org
    http:
      paths:
      - backend:
          serviceName: httpserver
          servicePort: 8080
        path: /hello*
@dayongi
Copy link
Contributor Author

dayongi commented Sep 10, 2020

Because there is no corresponding service. So add the corresponding service to fix this.

@gxthrj
Copy link
Contributor

gxthrj commented Sep 14, 2020

yes, the httpserver is a demo, There will be misunderstandings. need to point it out in the documentation.

@gxthrj
Copy link
Contributor

gxthrj commented Dec 7, 2020

I think need to change the demo, use a public backend image.

@gxthrj gxthrj self-assigned this Dec 7, 2020
@gxthrj gxthrj added this to the 0.1.0 milestone Dec 7, 2020
@tokers
Copy link
Contributor

tokers commented Dec 7, 2020

I think need to change the demo, use a public backend image.

We may create a demo by ourselves.

@membphis membphis added the documentation Improvements or additions to documentation label Dec 17, 2020
@membphis membphis modified the milestones: 0.1.0, 0.1.1 Dec 17, 2020
@tokers
Copy link
Contributor

tokers commented Dec 28, 2020

We have fixed the develop.md with the explicit installation guide about the backend http server (use httpbin).

@tokers tokers closed this as completed Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants