【问题标题】:How to test my Kubernetes Architecture (With drone.io)如何测试我的 Kubernetes 架构(使用drone.io)
【发布时间】:2018-10-24 13:25:20
【问题描述】:

我目前正在做一个 kubernetes 项目,我想把我的工作投入到 prod 中,但在此之前,公司希望能够测试 kubernetes 架构(创建正确的 pod、通信等... )。

关于架构: - 它是由 minikube 提供支持的单节点架构 - 我有一些 POD、一些 JOB、1 个 cronJob - 我的工作由调用 API 的 python 脚本管理

我需要能够测试我的架构和我的 python 脚本(使用 pytest) 作为 CD/CI,该公司使用 Drone.io 我已经尝试过 kind、pupernetes 和 ding。

有什么想法吗?

PS:这是我在 StackOverflow 上的第一篇文章,所以如果我犯了任何错误,请告诉我

【问题讨论】:

    标签: ubuntu kubernetes drone.io


    【解决方案1】:

    您需要将您的版本控制与drone.io 集成(我假设您已经拥有)

    Configure drone.io to make docker images of you code/app
    
    Push docker images to registry
    
    Configure a webhook that fires a deployment upon getting the new tag for image
    
    Configure the kubernetes yaml manifest for deploymenet that will be deployed to kuberntes
    
    Refine that above steps so that it works for test/dev/prod environmenets.
    

    理想情况下,您将代码提交到 test/dev ,将其打包为 docker 映像,在 test 命名空间中对其进行测试,然后将更改移植到 prod 分支,然后进行新的 docker build 和 kubernetes 部署

    【讨论】:

    • 首先感谢您的快速答复,我会尝试一下并尽快回复您
    • 我是drone.io的新手,如果我的问题看起来很愚蠢,请原谅我的docker镜像将包含什么(由drone.io制作的那个)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-30
    • 2014-09-16
    • 2015-04-12
    • 1970-01-01
    • 2019-07-05
    • 2016-10-15
    相关资源
    最近更新 更多