Comments (11)
from contour.
@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.
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.
@davecheney Ah gotcha - where can I find what the default vhost value is to test this?
from contour.
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.
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.
Ah sweet, thank you!
from contour.
from contour.
from contour.
Just tried it, looks like it works - thank you for such a quick response + fix!
from contour.
from contour.
Related Issues (20)
- Consider making GRPCRoute a required informer now that it is v1 HOT 1
- Annotate envoy fleet HOT 2
- Contour gateway api provisionner revert annotations HOT 3
- Periodically having `connection failure` HOT 4
- Bug: Remove unnecessary permissions in Helm Charts HOT 2
- Add a separate label for envoy or contour HOT 1
- Add support for HTTP based external auth server HOT 5
- do we have cookie based routing for httpproxy? HOT 4
- Cost saving: Feature request to enable switch to toggle Envoy compression filter HOT 3
- Allow External Auth when Fallback Certificate is used HOT 1
- JWKS Async Fetch HOT 1
- `responseTimeout` not applied for external auth extension service HOT 1
- Support Circuit breakers for extension services
- Add missing headers without overwriting in the `requestHeaderPolicy`
- HTTPRoute conflicts when specifying a fallback https listener HOT 1
- Status.LoadBalancer is empty when using service port other than 80 HOT 2
- Service AppProtocol should allow IANA standard service names like "http", "https" HOT 3
- Gateway-API: InvalidCertificateRef error if certificateRefs.group is set to "core" HOT 3
- Support for adaptive concurrency HOT 1
- PathRewitePolicy behaving weird with condition prefix and header match HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contour.