helm 安装openfaas

安装arkade

wget https://github.com/alexellis/arkade/releases/download/0.10.17/arkade
chmod +x arkade
mv arkade /usr/local/bin/arkade

安装faas-cli

arkade get faas-cli
mv ~/.arkade/bin/faas-cli /usr/local/bin/
# 自动补全设置到bashrc 中,如果使用了其它sh 需要修改
grep "faas-cli completion --shell bash" ~/.bashrc || echo "source <(faas-cli completion --shell bash)" >> ~/.bashrc
faas-cli version

创建namespace

wget https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml
kubectl apply -f namespaces.yml

拉取openfaas chart

helm repo add openfaas https://openfaas.github.io/faas-netes/
helm update
helm pull openfaas/openfaas

编写values.yaml

安装openfaas

显示如下

参考

https://artifacthub.io/packages/helm/openfaas/openfaas

https://github.com/openfaas/faas-netes/tree/master/chart/openfaas

https://docs.openfaas.com/deployment/kubernetes/

https://www.openfaas.com/blog/bring-gitops-to-your-openfaas-functions-with-argocd/

Last updated