随笔分类 -  k8s

摘要:指定配置文件,并取名为config.toml # connection settings # print detailed information including request traces #启用调试日志,这项要放在最上面,否则日志打印不到文件 verbose = true # connec 阅读全文
posted @ 2021-12-18 11:26 AGopher 阅读(377) 评论(9) 推荐(1) 编辑
摘要:当我们在实际工作中,开发、测试环境部署不成功,但是其他人正在用,我们立即使用回滚功能 //查看部署rs历史 kubectl rollout history deployment.v1.apps/mssiotuser -n mssiot //查看某个部署rs详情 kubectl rollout his 阅读全文
posted @ 2021-12-12 15:40 AGopher 阅读(446) 评论(0) 推荐(0) 编辑
摘要:在项目部署的过程中我们会用到k8s, 所以让我们用他从0到1部署一个golang服务 简单实现一个服务 import ( "github.com/gin-contrib/pprof" "github.com/gin-gonic/gin" "net/http" ) func main() { rout 阅读全文
posted @ 2021-12-12 15:16 AGopher 阅读(563) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示