HarveyZh
V2EX  ›  问与答

TeamCity 能部署镜像到 k8s 上吗?

  •  
  •   HarveyZh · Mar 3, 2021 · 1302 views
    This topic created in 1925 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
        1
    lff0305  
       Mar 3, 2021
    完全可以
    我司现在就是用 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
        2
    HarveyZh  
    OP
       Mar 3, 2021
    @lff0305 没太明白,能麻烦远程指导下吗,只要把镜像部署到 k8s 即可。 wx : emhhbmdodV8yMDEy
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3203 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:31 · PVG 19:31 · LAX 04:31 · JFK 07:31
    ♥ Do have faith in what you're doing.