zl程序教程

您现在的位置是:首页 >  后端

当前栏目

通过kubeless命令行部署Kyma Lambda Function

命令行部署 通过 Function lambda Kyma
2023-09-14 09:03:57 时间

除了在Kyma的浏览器控制台里部署Lambda Function外,也可以使用Kubeless命令行:

kubeless function deploy hello --label app=hello --runtime nodejs8 --handler hello.main --from-file https://raw.githubusercontent.com/kyma-project/examples/master/event-subscription/lambda/js/hello-with-data.js --trigger-http

kubeless function deploy hello --label app=hello --runtime nodejs8 --handler hello.main --from-file https://raw.githubusercontent.com/kyma-project/examples/master/event-subscription/lambda/js/hello-with-data.js --namespace ctu-demo

得到成功部署的消息后,使用命令行查看Lambda Function:

kubeless function ls hello -n ctu-demo

自动生成的deployment:

自动生成的replica sets:

自动生成的pod:

自动生成的service:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
[外链图片转存失败(img-V6XURNsM-1565577948010)(https://user-images.githubusercontent.com/5669954/60097669-68224900-9786-11e9-9f1e-e8bee08db4fa.png)]要获取更多Jerry的原创文章,请关注公众号"汪子熙":