通过kubeless命令行部署Kyma Lambda Function
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
![](https://user-images.githubusercontent.com/5669954/62757321-8d0c1a80-baad-11e9-8df1-9966ec3a749f.png)
得到成功部署的消息后,使用命令行查看Lambda Function:
kubeless function ls hello -n ctu-demo
![](https://user-images.githubusercontent.com/5669954/62757315-8bdaed80-baad-11e9-8f0c-89f60f212030.png)
![](https://user-images.githubusercontent.com/5669954/62757316-8bdaed80-baad-11e9-8eb1-73bdf2b1836b.png)
自动生成的deployment:
![](https://user-images.githubusercontent.com/5669954/62757317-8c738400-baad-11e9-96a3-c80ca8823b82.png)
自动生成的replica sets:
![](https://user-images.githubusercontent.com/5669954/62757318-8c738400-baad-11e9-81e7-56d5597a44ab.png)
自动生成的pod:
![](https://user-images.githubusercontent.com/5669954/62757319-8d0c1a80-baad-11e9-968e-3576fe506010.png)
自动生成的service:
![](https://user-images.githubusercontent.com/5669954/62757320-8d0c1a80-baad-11e9-9055-d6084df67ce6.png)
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
[外链图片转存失败(img-V6XURNsM-1565577948010)(https://user-images.githubusercontent.com/5669954/60097669-68224900-9786-11e9-9f1e-e8bee08db4fa.png)]要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- 10 款更先进的开源命令行工具
- 【openssl】如何利用openssl命令行快速生成RSA私钥?
- ZooKeeper系列3:ZooKeeper命令、命令行工具及简单操作详解大数据
- 行Linux下模拟命令行大全(linux模拟命令)
- 命令行 Linux突破路由器极限,进入命令行(linux进入路由器)
- 实现Linux驱动快速安装:探究命令行的奥秘(linux驱动安装命令)
- Oracle 命令行登录:快捷、便捷、安全(oracle命令行登陆)
- Linux下使用getopt简化命令行参数处理(getoptlinux)
- 行学习深入浅出:Linux红帽命令行学习之旅(linux红帽命令)
- 掌握Linux下的命令行神器ll(linux常用命令ll)
- 命令MySQL使用命令行操作指南(mysql的cmd)
- Linux程序退出1:从命令行调试中学习(linuxexit1)
- 命令行生存指南:监视命令输出
- 轻松学习Linux:如何用命令行移除文件(linux移除文件)
- 使用命令行远程连接MSSQL服务器(命令行远程连接mssql)
- 打开Redis命令行,操作轻松自如(打开 redis命令行)
- 掌握cmd写mysql命令行技术(cmd写mysql命令行)
- redis与命令行让管理更便捷(命令行如何操作redis)
- t-sql/mssql用命令行导入数据脚本的SQL语句示例