Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
cbc59db6
Commit
cbc59db6
authored
Feb 01, 2019
by
Evan Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rendering of caution text
parent
91ba95f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
doc/user/project/clusters/serverless/index.md
doc/user/project/clusters/serverless/index.md
+6
-5
No files found.
doc/user/project/clusters/serverless/index.md
View file @
cbc59db6
# Serverless
# Serverless
> Introduced in GitLab 11.5.
> Introduced in GitLab 11.5.
CAUTION:
**Caution:**
CAUTION:
**Caution:**
Serverless is currently in
[
alpha
](
https://about.gitlab.com/handbook/product/#alpha
)
.
Serverless is currently in
[
alpha
](
https://about.gitlab.com/handbook/product/#alpha
)
.
...
@@ -138,8 +139,8 @@ Follow these steps to deploy a function using the Node.js runtime to your Knativ
...
@@ -138,8 +139,8 @@ Follow these steps to deploy a function using the Node.js runtime to your Knativ
```
```
The
`serverless.yml`
file references both an
`echo`
directory (under
`buildargs`
) and an
`echo`
file (under
`handler`
),
The
`serverless.yml`
file references both an
`echo`
directory (under
`buildargs`
) and an
`echo`
file (under
`handler`
),
which is a reference to
`echo.js`
in the
[
repository
](
https://gitlab.com/knative-examples/functions
)
. Additionally, it
which is a reference to
`echo.js`
in the
[
repository
](
https://gitlab.com/knative-examples/functions
)
. Additionally, it
contains three sections with distinct parameters:
contains three sections with distinct parameters:
### `service`
### `service`
...
@@ -170,7 +171,7 @@ In the `serverless.yml` example above, the function name is `echo` and the subse
...
@@ -170,7 +171,7 @@ In the `serverless.yml` example above, the function name is `echo` and the subse
|
`buildargs`
| Pointer to the function file in the repo. In the sample the function is located in the
`echo`
directory. |
|
`buildargs`
| Pointer to the function file in the repo. In the sample the function is located in the
`echo`
directory. |
|
`environment`
| Sets an environment variable for the specific function only. |
|
`environment`
| Sets an environment variable for the specific function only. |
After the
`gitlab-ci.yml`
template has been added and the
`serverless.yml`
file has been
After the
`gitlab-ci.yml`
template has been added and the
`serverless.yml`
file has been
created, pushing a commit to your project will result in a
created, pushing a commit to your project will result in a
CI pipeline being executed which will deploy each function as a Knative service.
CI pipeline being executed which will deploy each function as a Knative service.
Once the deploy stage has finished, additional details for the function will
Once the deploy stage has finished, additional details for the function will
...
@@ -237,7 +238,7 @@ With all the pieces in place, the next time a CI pipeline runs, the Knative appl
...
@@ -237,7 +238,7 @@ With all the pieces in place, the next time a CI pipeline runs, the Knative appl
### Obtain the URL for the Knative deployment
### Obtain the URL for the Knative deployment
Go to the
**Operations > Serverless**
page to find the URL for your deployment in the
**Domain**
column.
Go to the
**Operations > Serverless**
page to find the URL for your deployment in the
**Domain**
column.
![
app domain
](
img/app-domain.png
)
![
app domain
](
img/app-domain.png
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment