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