Created
November 19, 2015 01:47
-
-
Save ramr/ed985df5ea261bc92c9e to your computer and use it in GitHub Desktop.
multiple routes to the same header-test service
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" | |
} | |
}, | |
"spec": { | |
"host": "header.test", | |
"to": { "name": "header-test" } | |
} | |
} | |
' > header-test-route.json | |
echo ' | |
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "www1-header-test-route", | |
"labels": { | |
"name": "www1-header-test-route" | |
} | |
}, | |
"spec": { | |
"host": "www1.header.test", | |
"to": { "name": "header-test" } | |
} | |
} | |
' > www1-header-test-route.json | |
echo oc create -f header-test-route.json | |
echo oc create -f www1-header-test-route.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment