Giter Club home page Giter Club logo

Comments (11)

davecheney avatar davecheney commented on May 22, 2024 1

from contour.

davecheney avatar davecheney commented on May 22, 2024

@adelbertc thanks for raising the issue. I have a feeling I know what it is.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: hello
  labels:
    app: nelson
spec:
  rules:
    - http:
        paths:

Doesn't specify a hostname. https://kubernetes.io/docs/api-reference/v1.8/#ingressrule-v1beta1-extensions (the host: field).

Contour expects this field to be mandatory, but I'll check the api definitions for 1.8 and confirm this.

In the meantime the workaround would be to add a host: field to your ingress object.

from contour.

davecheney avatar davecheney commented on May 22, 2024

Yup, this was my misunderstanding. The spec says

If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.

So it should become the default vhost as in your first example.

from contour.

adelbertc avatar adelbertc commented on May 22, 2024

@davecheney Ah gotcha - where can I find what the default vhost value is to test this?

from contour.

davecheney avatar davecheney commented on May 22, 2024

Something like this should do it

% kubectl -n heptio-contour get svc -o yaml | grep hostname
      - hostname: a4d1766f6ce1611e7b27f023b7e83d33-1465548734.ap-southeast-2.elb.amazonaws.com

from contour.

adelbertc avatar adelbertc commented on May 22, 2024

Hm I don't seem to have that, I assume this is vendor specific since I am running in OpenStack.

Is the host value intended to be a hostname through which outside clients can reach the LoadBalancer, with the idea being hitting difference hostnames can trigger different rules, e.g. host1.foo.com/bar can trigger a different rule than host2.foo.com/bar ?

from contour.

adelbertc avatar adelbertc commented on May 22, 2024

Ah sweet, thank you!

from contour.

adelbertc avatar adelbertc commented on May 22, 2024

from contour.

davecheney avatar davecheney commented on May 22, 2024

from contour.

adelbertc avatar adelbertc commented on May 22, 2024

Just tried it, looks like it works - thank you for such a quick response + fix!

from contour.

davecheney avatar davecheney commented on May 22, 2024

from contour.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.