首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >15 Jan 2024 flux学习之部署flux ui

15 Jan 2024 flux学习之部署flux ui

作者头像
俊采
发布2024-01-16 09:39:50
发布2024-01-16 09:39:50
2660
举报
文章被收录于专栏:LEo的网络日志LEo的网络日志

前置条件

  • kubectl
  • kind v0.20.0
  • docker
  • flux version 2.2.2
  • $GITHUB_USER
  • $GITHUB_TOKEN

部署flux

参考这篇文章部署flux:http://reborncodinglife.com/2024/01/09/flux-learning-deploy-flux-in-kind/

helm方式

代码语言:javascript
复制
PASSWORD="admin"
gitops create dashboard ww-gitops \
  --password=$PASSWORD \
  --export > ./clusters/private-cloud/weave-gitops/weave-gitops-dashboard.yaml

设置默认登录密码为admin,执行这个命令,会自动生成一个包含helmrepository和helmrelease的yaml文件。将这个文件提交flux管理的git repo,flux会自动部署。

代码语言:javascript
复制
git add -A && git commit -m "Add Weave GitOps Dashboard"
git push
kubectl port-forward svc/weave-gitops -n flux-system 9001:9001

最后通过端口转发方式验证,登录flux ui:http://localhost:9001/

yaml文件

也可以直接clone weave-gitops仓库,自己生成部署需要的yaml,然后按照flux的方式创建相应的kustomization和gitrepository部署。

代码语言:javascript
复制
$ cd weave-gitops/
$ helm template charts/gitops-server/ > flux-ui.yaml

具体配置参考:

  • https://github.com/songleo/private-cloud/blob/main/apps/weave-gitops/weave-gitops.yaml
  • https://github.com/songleo/private-cloud/blob/main/clusters/private-cloud/weave-gitops/weave-gitops-dashboard.yaml

参考

  • https://github.com/songleo/private-cloud

LEo at 00:12

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 前置条件
  • 部署flux
  • helm方式
  • yaml文件
  • 参考
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档