Fix 3654 bug fixes (#3661)

* fixes #3654

Fix #3654 and add "Knative Sandbox" language based on user feedback

* Update first-service.md

* Update docs/getting-started/first-service.md

Co-authored-by: Ashleigh Brennan <abrennan@redhat.com>

* can -> will

* more fixes

* hot-fix for formatting

Co-authored-by: Ashleigh Brennan <abrennan@redhat.com>
This commit is contained in:
Omer B 2021-05-25 06:56:38 -04:00 committed by GitHub
parent da50976fec
commit 70ee0fcbe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 5 deletions

View File

@ -18,6 +18,9 @@ For those of you familiar with other **source-to-url** tools, this may seem fami
--revision-name=world
```
??? question "Why did I pass in `revision-name`?"
Note the name "world" which you passed in as "revision-name," naming your `Revisions` will help you to more easily identify them, but don't worry, you'll learn more about `Revisions` later.
=== "YAML"
``` bash
@ -28,7 +31,7 @@ For those of you familiar with other **source-to-url** tools, this may seem fami
spec:
template:
metadata:
# This is the name of our new "Revision," see "?" box below for more details
# This is the name of our new "Revision," it must follow the convention {service-name}-{revision-name}
name: hello-world
spec:
containers:
@ -43,16 +46,17 @@ For those of you familiar with other **source-to-url** tools, this may seem fami
``` bash
kubectl apply -f hello.yaml
```
??? question "Why did I pass in the second name, `hello-world`?"
Note the name "hello-world" which you passed in under "metadata" in your YAML file. Naming your `Revisions` will help you to more easily identify them, but don't worry if this if a bit confusing now, you'll learn more about `Revisions` later.
After Knative has successfully created your service, you should see the following:
==**Expected output:**==
```{ .bash .no-copy }
Service hello created to latest revision 'hello-world' is available at URL:
http://hello.default.127.0.0.1.nip.io
```
??? question "Why did I pass in `revision-name`?"
Note that the name "world" which you passed in as "revision-name" (or under "metadata" in your YAML file) is being used to create the `Revision`'s name (`latest revision "hello-world"...`). This will help you to more easily identify this particular `Revision`, but don't worry, we'll talk more about `Revisions` later.
## Run your Knative Service
```
curl http://hello.default.127.0.0.1.nip.io