Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Update quick-start.md to use kubeless namespace #1006

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ You create it with:

```console
$ kubeless function deploy hello --runtime python2.7 \
-n kubeless
--from-file test.py \
--handler test.hello
INFO[0000] Deploying function...
Expand All @@ -97,31 +98,31 @@ You can find the rest of options available when deploying a function executing `
You will see the function custom resource created:

```console
$ kubectl get functions
$ kubectl get functions -n kubeless
NAME AGE
hello 1h

$ kubeless function ls
$ kubeless function ls -n kubeless
NAME NAMESPACE HANDLER RUNTIME DEPENDENCIES STATUS
hello default helloget.foo python2.7 1/1 READY
```

You can then call the function with:

```console
$ kubeless function call hello --data 'Hello world!'
$ kubeless function -n kubeless call hello --data 'Hello world!'
Hello world!
```

Or you can curl directly with `kubectl proxy`using an [apiserver proxy URL](https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#manually-constructing-apiserver-proxy-urls).
For example:

```console
$ kubectl proxy -p 8080 &
$ kubectl -n kubeless proxy -p 8080 &

$ curl -L --data '{"Another": "Echo"}' \
--header "Content-Type:application/json" \
localhost:8080/api/v1/namespaces/default/services/hello:http-function-port/proxy/
localhost:8080/api/v1/namespaces/kubeless/services/hello:http-function-port/proxy/
{"Another": "Echo"}
```

Expand All @@ -132,12 +133,12 @@ Kubeless also supports [ingress](https://kubernetes.io/docs/concepts/services-ne
You can delete the function and uninstall Kubeless:

```console
$ kubeless function delete hello
$ kubeless function -n kubeless delete hello

$ kubeless function ls
$ kubeless function -n kubeless ls
NAME NAMESPACE HANDLER RUNTIME DEPENDENCIES STATUS

$ kubectl delete -f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-$RELEASE.yaml
$ kubectl -n kubeless delete -f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-$RELEASE.yaml
```

## Examples
Expand Down