Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 657 Bytes

File metadata and controls

37 lines (26 loc) · 657 Bytes

Use kubectl to apply the manifests, then connect the container via nocalhost.

FUNC_CONTEXT example:

{
  "name": "ff-python",
  "version": "v1",
  "triggers": {
    "http": {
      "port": 8080
    }
  }
}

After logging into the container terminal, export FUNC_CONTEXT:

export FUNC_CONTEXT='{"name":"ff-python","version":"v1","triggers":{"http":{"port":8080}}}'

Run function:

ff --source examples/openfunction_http_trigger/user_function.py --target user_function

Start a curl pod to access the function:

~ $ curl ff-python-http-service

hello world