Knative Functions client API and CLI
Go to file
Luke K 0022829269
pull lister into client library
2020-04-27 15:02:36 +00:00
appsody updater: add kn-based implementation 2020-04-18 16:29:43 +00:00
client pull lister into client library 2020-04-27 15:02:36 +00:00
cmd pull lister into client library 2020-04-27 15:02:36 +00:00
docker docker-based pusher implementation 2020-04-11 19:43:38 +00:00
k8s moved cluster config notes and yamls to dedicated config repo 2020-04-15 16:57:44 +00:00
kn updater: add kn-based implementation 2020-04-18 16:29:43 +00:00
knative pull lister into client library 2020-04-27 15:02:36 +00:00
kubectl feat: list sub-command for faas cli 2020-04-23 16:29:33 +02:00
.gitignore Initial Commit 2020-03-04 14:36:41 +00:00
README.md docs: appsody with boson stacks config 2020-04-23 10:35:07 +00:00
go.mod pull lister into client library 2020-04-27 15:02:36 +00:00
go.sum feat: list sub-command for faas cli 2020-04-23 16:29:33 +02:00
main.go Command improvements 2020-04-09 16:30:06 +00:00

README.md

faas

Function as a Service CLI

Setup and Configuration

With Go 1.13+ installed, build and install the binary to your path:

go install

Install dependent binaries:

Configure Boson appsody stack repository:

appsody repo add boson https://github.com/boson-project/stacks/releases/latest/download/boson-index.yaml

Configure Image repository:

Both the image repository and user/org namespace need to be defined either by using the --registry and --namespace flags on the create command, or by configuring as environment variables. For example to configure all images to be pushed to quay.io/alice, use:

export FAAS_REGISTRY=quay.io
export FAAS_NAMESPACE=alice

Cluster connection:

It is expected that kubectl and kn be configured to connect to a kubernetes cluster with the following configuration:

  • Knative Serving and Eventing
  • Knative Domains patched to enable your chosen domain
  • Knative Network patched to enable subdomains
  • Kourier
  • Cert-manager

see https://github.com/lkingland/config for cluster setup and configuration details.

Usage

See help:

faas

Examples

Create a new Service Function:

> mkdir -p example.com/www
> cd example.com/www
> faas create go
https://www.example.com
> curl https://www.example.com
OK