Skip to content
Snippets Groups Projects
Commit 1ef732e1 authored by Daniel Gruesso's avatar Daniel Gruesso
Browse files

Update obtaining url for serverless apps

parent 30d8dcc7
No related branches found
No related tags found
No related merge requests found
doc/user/project/clusters/serverless/img/app-domain.png

204 KiB

doc/user/project/clusters/serverless/img/serverless-page.png

60.9 KiB | W: 1671px | H: 659px

doc/user/project/clusters/serverless/img/serverless-page.png

187 KiB | W: 2466px | H: 1058px

doc/user/project/clusters/serverless/img/serverless-page.png
doc/user/project/clusters/serverless/img/serverless-page.png
doc/user/project/clusters/serverless/img/serverless-page.png
doc/user/project/clusters/serverless/img/serverless-page.png
  • 2-up
  • Swipe
  • Onion skin
Loading
Loading
@@ -196,9 +196,20 @@ The function details can be retrieved directly from Knative on the cluster:
kubectl -n "$KUBE_NAMESPACE" get services.serving.knative.dev
```
 
The sample function can now be triggered from any HTTP client using a simple `POST` call.
The sample function can now be triggered from any HTTP client using a simple `POST` call:
 
![function exection](img/function-execution.png)
1. Using curl
```bash
curl \
--header "Content-Type: application/json" \
--request POST \
--data '{"GitLab":"FaaS"}' \
http://functions-echo.functions-1.functions.example.net/
```
2. Using a web-based tool (ie. postman, restlet, etc)
![function exection](img/function-execution.png)
 
## Deploying Serverless applications
 
Loading
Loading
@@ -244,11 +255,7 @@ With all the pieces in place, the next time a CI pipeline runs, the Knative appl
 
### Obtain the URL for the Knative deployment
 
Go to the **Operations > Serverless** page to find the URL for your deployment in the **Domain** column.
![app domain](img/app-domain.png)
Alternatively, use the CI/CD deployment job output to obtain the deployment URL. Once all the stages of the pipeline finish, click the **deploy** stage.
Go to the **CI/CD > Pipelines** and click on the pipeline that deployed your app. Once all the stages of the pipeline finish, click the **deploy** stage.
 
![deploy stage](img/deploy-stage.png)
 
Loading
Loading
@@ -270,7 +277,7 @@ registry.staging.gitlab.com/danielgruesso/knative
$ tm -n "$KUBE_NAMESPACE" --config "$KUBECONFIG" deploy service "$CI_PROJECT_NAME" --from-image "$CI_REGISTRY_IMAGE" --wait
Deployment started. Run "tm -n knative-4342902 describe service knative" to see the details
Waiting for ready state.......
Service domain: knative.knative-4342902.knative.info
Service domain: knative.knative-4342902.example.com
Job succeeded
```
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment