Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.55 KB

File metadata and controls

59 lines (40 loc) · 1.55 KB

License

Awesome Knative Function Templates

A community-driven collection of Knative Function templates that go beyond the basics.

For the official built-in templates (hello, echo, cloudevents), see functions-dev/templates.

Available Templates

Python

  • llamacpp — Local LLM text generation via llama.cpp
  • mcp-ollama — MCP server for Ollama (list/pull/call models)
  • ollama-client — HTTP proxy to a local Ollama server

How To Use

Create a function from this repository using the --repository flag:

func create myfunc --repository=https://github.com/functions-dev/awesome --language python --template=ollama-client

Where --language matches the top-level directory and --template matches the subdirectory containing the template:

awesome/
├── python/
│   ├── llamacpp/
│   ├── mcp-ollama/
│   └── ollama-client/

Then build and run locally:

cd myfunc
func run --builder=host

Or deploy to a cluster:

func deploy --builder=host --registry=myregistry.com/username

Contributing

Want to add a template? See CONTRIBUTING.md for the step-by-step guide.

Contact

Reach us on CNCF Slack in the #knative-functions channel.