HarveyZh
V2EX  ›  问与答

TeamCity 能部署镜像到 k8s 上吗?

  •  
  •   HarveyZh · Mar 3, 2021 · 1613 views
    This topic created in 2086 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   ·   2279 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 13:58 · PVG 21:58 · LAX 05:58 · JFK 08:58
    ♥ Do have faith in what you're doing.