mirror of https://github.com/knative/docs.git
parent
bbd1503e97
commit
323b51c8be
|
@ -119,11 +119,11 @@ recreate the source files from this folder.
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: docker.io/{username}/helloworld-rust
|
- image: docker.io/{username}/helloworld-rust
|
||||||
env:
|
env:
|
||||||
- name: TARGET
|
- name: TARGET
|
||||||
value: "Rust Sample v1"
|
value: "Rust Sample v1"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build and deploy this sample
|
## Build and deploy this sample
|
||||||
|
|
|
@ -25,16 +25,16 @@ Create a sample service:
|
||||||
apiVersion: serving.knative.dev/v1
|
apiVersion: serving.knative.dev/v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helloworld-go
|
name: helloworld-go
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gcr.io/knative-samples/helloworld-go
|
- image: gcr.io/knative-samples/helloworld-go
|
||||||
env:
|
env:
|
||||||
- name: TARGET
|
- name: TARGET
|
||||||
value: "Go Sample v1"
|
value: "Go Sample v1"
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Apply the YAML file by running the command:
|
1. Apply the YAML file by running the command:
|
||||||
|
|
Loading…
Reference in New Issue