diff --git a/code-samples/community/serving/helloworld-rust/README.md b/code-samples/community/serving/helloworld-rust/README.md index 8f9cdc948..0736b0023 100644 --- a/code-samples/community/serving/helloworld-rust/README.md +++ b/code-samples/community/serving/helloworld-rust/README.md @@ -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 diff --git a/docs/serving/services/creating-services.md b/docs/serving/services/creating-services.md index 9607b9f51..e9dbfaa90 100644 --- a/docs/serving/services/creating-services.md +++ b/docs/serving/services/creating-services.md @@ -25,18 +25,18 @@ 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: ```bash