Created
April 7, 2019 03:42
-
-
Save yfuruyama/7deef1438a83bf5e882a9cd843341ef3 to your computer and use it in GitHub Desktop.
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
apiVersion: serving.knative.dev/v1alpha1 | |
kind: Route | |
metadata: | |
name: helloworld-go | |
namespace: default | |
spec: | |
traffic: | |
- revisionName: helloworld-go-s66mr | |
percent: 100 | |
name: prod | |
url: prod.helloworld-go.default.example.com | |
- revisionName: helloworld-go-7s9kk | |
percent: 0 | |
name: dev | |
url: dev.helloworld-go.default.example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can access dev revision by
curl -H "Host: dev.helloworld-go.default.example.com" http://{IP}:{PORT}
even if traffic percent is zero.