0

I am trying a vespa ai Quick Start Kubernetes tutorial. Using the same kubernetes configs, but instead of port-forwarding I want to use an ingress with a configuration:

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  namespace: default
  name: vespa
spec:
  rules:
    - host: vespa-0.dev.net
      http:
        paths:
          - backend:
              serviceName: vespa
              servicePort: 19071
            path: /

It works and I can open vespa config urls and also deploy a test application. Using the https://vespa-0.dev.net/ url in my env. But when I try uploading docs with a command:

curl -s -H "Content-Type:application/json" --data-binary @${VESPA_SAMPLE_APPS}/album-recommendation/src/test/resources/A-Head-Full-of-Dreams.json https://vespa-0.dev.net/document/v1/mynamespace/music/docid/123

I got:

Problem accessing /document/v1/mynamespace/music/docid/123
No binding for URI 'http://vespa-0.dev.net:19071/document/v1/mynamespace/music/docid/123'

What is wrong with my ingress/vespa configuration? Maybe somebody have an example of working vespa instances behind kubernetes ingress?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.