* fixes #3656

* add latest correctly, route still doesn't work though
This commit is contained in:
Omer B 2021-05-25 00:29:37 -04:00 committed by GitHub
parent 3c91a42bb0
commit da50976fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions

View File

@ -23,8 +23,8 @@ Instead of `TARGET`="World," let's update the environment variable `TARGET` on o
```
=== "YAML"
``` bash
---
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
@ -32,7 +32,7 @@ Instead of `TARGET`="World," let's update the environment variable `TARGET` on o
spec:
template:
metadata:
name: knative
name: hello-knative
spec:
containers:
- image: gcr.io/knative-samples/helloworld-go
@ -107,16 +107,17 @@ By default, when Knative creates a brand new `Revision` it directs 100% of traff
```
=== "YAML"
Add the following to the bottom of your existing YAML file:
``` bash
---
apiVersion: serving.knative.dev/v1
kind: Route
metadata:
name: route-hello
name: hello
spec:
traffic:
- revisionName: @latest
- percent: 50
- revisionName: latest
percent: 50
- revisionName: hello-world
percent: 50
```