mirror of https://github.com/knative/docs.git
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:
parent
da50976fec
commit
70ee0fcbe1
|
@ -18,6 +18,9 @@ For those of you familiar with other **source-to-url** tools, this may seem fami
|
||||||
--revision-name=world
|
--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"
|
=== "YAML"
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
|
@ -28,7 +31,7 @@ For those of you familiar with other **source-to-url** tools, this may seem fami
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
metadata:
|
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
|
name: hello-world
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
|
@ -43,16 +46,17 @@ For those of you familiar with other **source-to-url** tools, this may seem fami
|
||||||
``` bash
|
``` bash
|
||||||
kubectl apply -f hello.yaml
|
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 }
|
```{ .bash .no-copy }
|
||||||
Service hello created to latest revision 'hello-world' is available at URL:
|
Service hello created to latest revision 'hello-world' is available at URL:
|
||||||
http://hello.default.127.0.0.1.nip.io
|
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
|
## Run your Knative Service
|
||||||
```
|
```
|
||||||
curl http://hello.default.127.0.0.1.nip.io
|
curl http://hello.default.127.0.0.1.nip.io
|
||||||
|
|
Loading…
Reference in New Issue