Skip to content

Instantly share code, notes, and snippets.

@yfuruyama
Created April 7, 2019 03:42
Show Gist options
  • Save yfuruyama/7deef1438a83bf5e882a9cd843341ef3 to your computer and use it in GitHub Desktop.
Save yfuruyama/7deef1438a83bf5e882a9cd843341ef3 to your computer and use it in GitHub Desktop.
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
@yfuruyama
Copy link
Author

We can access dev revision by curl -H "Host: dev.helloworld-go.default.example.com" http://{IP}:{PORT} even if traffic percent is zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment