mirror of https://github.com/knative/docs.git
* fixes #3656 * add latest correctly, route still doesn't work though
This commit is contained in:
parent
3c91a42bb0
commit
da50976fec
|
@ -23,8 +23,8 @@ Instead of `TARGET`="World," let's update the environment variable `TARGET` on o
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "YAML"
|
=== "YAML"
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
|
---
|
||||||
apiVersion: serving.knative.dev/v1
|
apiVersion: serving.knative.dev/v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -32,7 +32,7 @@ Instead of `TARGET`="World," let's update the environment variable `TARGET` on o
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: knative
|
name: hello-knative
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gcr.io/knative-samples/helloworld-go
|
- 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"
|
=== "YAML"
|
||||||
|
Add the following to the bottom of your existing YAML file:
|
||||||
``` bash
|
``` bash
|
||||||
|
---
|
||||||
apiVersion: serving.knative.dev/v1
|
apiVersion: serving.knative.dev/v1
|
||||||
kind: Route
|
kind: Route
|
||||||
metadata:
|
metadata:
|
||||||
name: route-hello
|
name: hello
|
||||||
spec:
|
spec:
|
||||||
traffic:
|
traffic:
|
||||||
- revisionName: @latest
|
- revisionName: latest
|
||||||
- percent: 50
|
percent: 50
|
||||||
- revisionName: hello-world
|
- revisionName: hello-world
|
||||||
percent: 50
|
percent: 50
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue