HarveyZh
V2EX  ›  问与答

TeamCity 能部署镜像到 k8s 上吗?

  •  
  •   HarveyZh · Mar 3, 2021 · 1599 views
    This topic created in 2075 days ago, the information mentioned may be changed or developed.

    昨天刚接触 teamcity,从编译发布镜像一切都是正常的,到最后一步在 Build Steps 里面也没有找到部署镜像到 k8s 到选项。

    2 replies  •  2021-03-03 13:01:24 +08:00
    lff0305
    lff0305
    Mar 3, 2021
    1
    完全可以
    我司现在就是用 TC 来发布到 k8s, 用的是 helm
    大概流程是:
    程序员提交 PR -> build -> 生成 new image -> clone & update helm chart 中的 image tag -> commit & push helm chart
    TC 发现 helm chart 被更改了 -> update helm chart -> login to k8s -> helm upgrade,直接更新到 k8s
    HarveyZh
    HarveyZh
    OP
    Mar 3, 2021
    2
    @lff0305 没太明白,能麻烦远程指导下吗,只要把镜像部署到 k8s 即可。 wx : emhhbmdodV8yMDEy
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   754 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 23:02 · PVG 07:02 · LAX 15:02 · JFK 18:02
    ♥ Do have faith in what you're doing.