openfaas / faas-netes

Serverless Functions For Kubernetes
https://www.openfaas.com
MIT License
2.12k stars 473 forks source link

OpenFaaS CE and local registry with KinD #1198

Closed maiermic closed 4 months ago

maiermic commented 7 months ago

Steps to Reproduce (for bugs)

Install local registry with KinD (on port 5001) as described in https://docs.openfaas.com/tutorials/local-kind-registry/ Install and run OpenFaaS CE:

curl -sLS https://get.arkade.dev > arkade.sh && chmod +x arkade.sh && ./arkade.sh
arkade install openfaas
curl -sSL https://cli.openfaas.com | sudo sh
kubectl -n openfaas get deployments -l "release=openfaas, app=openfaas"
kubectl rollout status -n openfaas deploy/gateway
kubectl port-forward -n openfaas svc/gateway 8080:8080 &
PASSWORD=$(kubectl get secret -n openfaas basic-auth -o jsonpath="{.data.basic-auth-password}" | base64 --decode; echo) && echo -n $PASSWORD | faas-cli login --username admin --password-stdin

Create any custom OpenFaaS function with image localhost:5001/my-image-name:latest and run

faas-cli up -f OpenFaas.yml

Expected Behaviour

Successful deployment

Current Behaviour

Unexpected status: 400, message: the Community Edition license agreement only supports public images

Why is this needed?

local development, offline development

Who is this for?

OpenFaaS Community

Your Environment

$ faas-cli version
  ___                   _____           ____
 / _ \ _ __   ___ _ __ |  ___|_ _  __ _/ ___|
| | | | '_ \ / _ \ '_ \| |_ / _` |/ _` \___ \
| |_| | |_) |  __/ | | |  _| (_| | (_| |___) |
 \___/| .__/ \___|_| |_|_|  \__,_|\__,_|____/
      |_|

CLI:
 commit:  a3e72b5881c4efcc7a366a2e8dc384399c807dfc
 version: 0.16.23

Gateway
 uri:     http://127.0.0.1:8080
 version: 0.27.5
 sha:     5c13f1f01c6a9f596857d81c889d77bd04fbc5c1

Provider
 name:          faas-netes-ce
 orchestration: kubernetes
 version:       0.18.1
 sha:           e35f8441df8355654fcb56eab55d4575aabcdcfd
alexellis commented 4 months ago

Hi @maiermic there is no bug or defect here. The error message has explained what to do.

OpenFaaS CE is not meant for commercial exploitation, but for hobbyists and for exploration.

If you're using OpenFaaS in production, OpenFaaS Standard is the best option.

alexellis commented 4 months ago

/lock: resolved