一 快速部署
Kubernetes上helm部署就挺快的。
需准备:
- 一个k8s集群
- helm装好
命名空间
给openfaas配两个命名空间:
一个用于部署openfaas,一个用于部署function。kubectl apply -f https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml
添加helm repo
helm repo add openfaas https://openfaas.github.io/faas-netes/
安装chart
helm repo update \&& helm upgrade openfaas --install openfaas/openfaas \--namespace openfaas \--set functionNamespace=openfaas-fn \--set generateBasicAuth=true

