This file contains hidden or 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
echo ' | |
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "header-test-route", | |
"labels": { | |
"name": "header-test-route" | |
} |
This file contains hidden or 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
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "header-test-reencrypt-test-failure" | |
}, | |
"id": "header-test-reencrypt-test-failure", | |
"spec": { | |
"host": "header.test", | |
"to": { |
This file contains hidden or 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
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "header-test-reencrypt-test-failure" | |
}, | |
"id": "header-test-reencrypt-test-failure", | |
"spec": { | |
"host": "header.test", | |
"to": { |
This file contains hidden or 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
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ echo $(oc get endpoints router --output-version=v1beta3 --template='{{ if .subsets }}{{ len .subsets }}{{ else }}0{{ end }}') | |
1 | |
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ oc get endpoints router | |
NAME ENDPOINTS AGE | |
router 33s | |
... wait for the router pod to come up ... | |
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ oc get endpoints router | |
NAME ENDPOINTS AGE |
This file contains hidden or 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: router-exposition | |
labels: | |
name: router | |
spec: | |
type: NodePort | |
ports: | |
# the port that this service should serve on |
This file contains hidden or 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
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "fails-route-4" | |
}, | |
"id": "fails-route-4", | |
"spec": { | |
"host": "fails-route-4.header.test", |
This file contains hidden or 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
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "fails-route-3" | |
}, | |
"id": "fails-route-3", | |
"spec": { | |
"host": "fails-route-3.header.test", |
This file contains hidden or 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
[root@ip-10-3-90-122 ~]# cat ramr-test-edge-allow-default-cert.json | |
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "ramr-test-http-allow-defaultcert" | |
}, | |
"id": "ramr-test-http-allow-defaultcert", | |
"spec": { | |
"host": "allow-http-defaultcert.ramr.test", |
This file contains hidden or 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
# cat ramr-test-edge-allow-default-cert.json | |
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "ramr-test-http-allow-defaultcert" | |
}, | |
"id": "ramr-test-http-allow-defaultcert", | |
"spec": { | |
"host": "allow-http-defaultcert.ramr.test", |
This file contains hidden or 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
[ramr@localhost origin (cached:master:c-0:s-0+224:o-6126)]$ git stash show stash@{3} -p | |
diff --git a/images/router/haproxy/conf/haproxy-config.template b/images/router/haproxy/conf/haproxy-config.template | |
index eb5b565..0f4e999 100644 | |
--- a/images/router/haproxy/conf/haproxy-config.template | |
+++ b/images/router/haproxy/conf/haproxy-config.template | |
@@ -60,6 +60,7 @@ listen stats :1936 | |
frontend public | |
bind :{{env "ROUTER_SERVICE_HTTP_PORT" "80"}} | |
mode http | |
+ http-request replace-value Host (.*):.* \1 |