mirror of https://github.com/knative/docs.git
Fixed markdown syntax in helloworld-java-spring/README.md (#5164)
* Fixed markdown syntax in helloworld-java-spring/README.md Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update code-samples/serving/hello-world/helloworld-java-spring/README.md * Update code-samples/serving/hello-world/helloworld-java-spring/README.md * Update code-samples/serving/hello-world/helloworld-java-spring/README.md * Update code-samples/serving/hello-world/helloworld-java-spring/README.md * Update code-samples/serving/hello-world/helloworld-java-spring/README.md Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> Co-authored-by: Samia Nneji <snneji@vmware.com>
This commit is contained in:
parent
acb827c003
commit
37b432c6f1
|
@ -133,7 +133,7 @@ During the creation of a Service, Knative performs the following steps:
|
||||||
|
|
||||||
To deploy the app:
|
To deploy the app:
|
||||||
|
|
||||||
=== "YAML"
|
### YAML
|
||||||
|
|
||||||
1. Create a new file named `service.yaml` and copy the following service definition
|
1. Create a new file named `service.yaml` and copy the following service definition
|
||||||
into the file:
|
into the file:
|
||||||
|
@ -163,7 +163,7 @@ To deploy the app:
|
||||||
kubectl apply -f service.yaml
|
kubectl apply -f service.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "kn"
|
### kn
|
||||||
|
|
||||||
With `kn` you can deploy the service with
|
With `kn` you can deploy the service with
|
||||||
|
|
||||||
|
@ -173,12 +173,12 @@ To deploy the app:
|
||||||
|
|
||||||
This will wait until your service is deployed and ready, and ultimately it will print the URL through which you can access the service.
|
This will wait until your service is deployed and ready, and ultimately it will print the URL through which you can access the service.
|
||||||
|
|
||||||
|
|
||||||
## Verification
|
## Verification
|
||||||
|
|
||||||
1. Find the domain URL for your service:
|
1. Find the domain URL for your service:
|
||||||
|
|
||||||
=== "kubectl"
|
- For kubectl, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl get ksvc helloworld-java-spring --output=custom-columns=NAME:.metadata.name,URL:.status.url
|
kubectl get ksvc helloworld-java-spring --output=custom-columns=NAME:.metadata.name,URL:.status.url
|
||||||
```
|
```
|
||||||
|
@ -190,8 +190,7 @@ To deploy the app:
|
||||||
helloworld-java-spring http://helloworld-java-spring.default.1.2.3.4.xip.io
|
helloworld-java-spring http://helloworld-java-spring.default.1.2.3.4.xip.io
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- For kn, run:
|
||||||
=== "kn"
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kn service describe helloworld-java-spring -o url
|
kn service describe helloworld-java-spring -o url
|
||||||
|
@ -222,12 +221,12 @@ To deploy the app:
|
||||||
|
|
||||||
To remove the sample app from your cluster, delete the service.
|
To remove the sample app from your cluster, delete the service.
|
||||||
|
|
||||||
=== "kubectl"
|
### kubectl
|
||||||
```bash
|
```bash
|
||||||
kubectl delete -f service.yaml
|
kubectl delete -f service.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "kn"
|
### kn
|
||||||
```bash
|
```bash
|
||||||
kn service delete helloworld-java-spring
|
kn service delete helloworld-java-spring
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue