-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Inclusion documentation for HTTPProxy
Fixes #1462 Signed-off-by: Nick Young <[email protected]>
- Loading branch information
Nick Young
committed
Sep 25, 2019
1 parent
befeb55
commit ff528cc
Showing
6 changed files
with
280 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
examples/example-workload/httpproxy/04-inclusion/httpproxy-inclusion-across-namespaces.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# httpproxy-inclusion-across-namespaces.yaml | ||
--- | ||
apiVersion: projectcontour.io/v1alpha1 | ||
kind: HTTPProxy | ||
metadata: | ||
name: namespace-delegation-root | ||
namespace: default | ||
spec: | ||
virtualhost: | ||
fqdn: ns-root.bar.com | ||
includes: | ||
# delegate the subpath, `/blog` to the IngressRoute object in the marketing namespace with the name `blog` | ||
- name: blog | ||
namespace: marketing | ||
conditions: | ||
- prefix: /blog | ||
routes: | ||
- services: | ||
- name: s1 | ||
port: 80 | ||
|
||
--- | ||
apiVersion: projectcontour.io/v1alpha1 | ||
kind: HTTPProxy | ||
metadata: | ||
name: blog | ||
namespace: marketing | ||
spec: | ||
routes: | ||
- services: | ||
- name: s2 | ||
port: 80 |
42 changes: 42 additions & 0 deletions
42
examples/example-workload/httpproxy/04-inclusion/httpproxy-inclusion-mutipleroots.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# httpproxy-inclusion-multipleroots.yaml | ||
--- | ||
apiVersion: projectcontour.io/v1alpha1 | ||
kind: HTTPProxy | ||
metadata: | ||
name: multiple-root | ||
namespace: default | ||
spec: | ||
virtualhost: | ||
fqdn: bar.com | ||
includes: | ||
- name: main | ||
namespace: default | ||
conditions: | ||
- prefix: / | ||
|
||
--- | ||
apiVersion: projectcontour.io/v1alpha1 | ||
kind: HTTPProxy | ||
metadata: | ||
name: multiple-root-www | ||
namespace: default | ||
spec: | ||
virtualhost: | ||
fqdn: www.bar.com | ||
includes: | ||
- name: main | ||
namespace: default | ||
conditions: | ||
- prefix: / | ||
|
||
--- | ||
apiVersion: projectcontour.io/v1alpha1 | ||
kind: HTTPProxy | ||
metadata: | ||
name: main | ||
namespace: default | ||
spec: | ||
routes: | ||
- services: | ||
- name: s2 | ||
port: 80 |
39 changes: 39 additions & 0 deletions
39
examples/example-workload/httpproxy/04-inclusion/httpproxy-inclusion-samenamespace.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# httpproxy-inclusion-samenamespace.yaml | ||
apiVersion: projectcontour.io/v1alpha1 | ||
kind: HTTPProxy | ||
metadata: | ||
name: delegation-root | ||
namespace: default | ||
spec: | ||
virtualhost: | ||
fqdn: root.bar.com | ||
includes: | ||
# Includes the /service2 path from www in the same namespace | ||
- name: www | ||
namespace: default | ||
conditions: | ||
- prefix: /service2 | ||
routes: | ||
- conditions: | ||
- prefix: / | ||
services: | ||
- name: s1 | ||
port: 80 | ||
--- | ||
apiVersion: projectcontour.io/v1alpha1 | ||
kind: HTTPProxy | ||
metadata: | ||
name: www | ||
namespace: default | ||
spec: | ||
routes: | ||
- conditions: | ||
- prefix: / # matches /service2 | ||
services: | ||
- name: s2 | ||
port: 80 | ||
- conditions: | ||
- prefix: /blog # matches /service2/blog | ||
services: | ||
- name: blog | ||
port: 80 |
File renamed without changes.
File renamed without changes.