DevOps 项目: Terraform, Pulumi, Packer, Ansible, Kubernetes - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dindingbell
V2EX    外包

DevOps 项目: Terraform, Pulumi, Packer, Ansible, Kubernetes

  •  
  •   dindingbell 2022-03-23 16:22:12 +08:00 1469 次点击
    这是一个创建于 1376 天前的主题,其中的信息可能已经有所发展或是发生改变。

    一个简单的 DevOps 项目,实现用 Packer build machine image, 用 Pulumi 来 provision 服务器和安装 Kubernetes ,创建服务器后 Ansible Playbook 来跑一些常规 package update 的命令

    有兴趣联系 VjogU3BvdF9MaWdodF8=

    7 条回复    2022-03-23 21:35:47 +08:00
    defunct9
        1
    defunct9  
       2022-03-23 16:31:03 +08:00
    We would like to create a project that will use pulumi to provision and configure servers.
    We will use packer to build the machine image, upload it to s3-like storage then use that to provision the server. The image should have docker baked in. We will also use Pulumi provider to install a RKE cluster.
    All of these will codified in pulumi.

    We will also use ansible/salt-stack to configure the machine after the server is provisioned, e.g. running some scripts to upgrade linux packages.

    The server vendor has provided it's own Packer builder, Terraform provider, and go sdk. But the terraform provider has not been actively maintained. Therefore we need to first upgrade it to the latest terraform version.

    The milestones are

    - convert terraform provider to pulumi provider
    - create a machine image using packer, and upload it to s3 bucket
    - provision the resources with that machine image, install a RKE cluster with pulumi
    - run scripts (e.g. package update) in ansible playbook on these nodes

    All of the process should be codified.
    defunct9
        2
    defunct9  
       2022-03-23 16:32:44 +08:00
    升级 terraform 到 pulumi ,然后用 packer 打出 qcow2 的 kvm 镜像,镜像中包含 ansible ,然后 pulumi 用这镜像安装 Rancher cluster 。
    defunct9
        3
    defunct9  
       2022-03-23 16:42:26 +08:00
    我是来看大神们的报价来的,这个多少合适。
    guoooo00oohao
        4
    guoooo00oohao  
       2022-03-23 19:54:34 +08:00
    以下均为 CNY 计价, 根据工时推算的.

    1. Packer build machine image : 5k
    2. Pulumi provrsion k8s cluster: 6k

    Ansible Playbook 不属于一次性工作,按照基本功时计费.
    defunct9
        5
    defunct9  
       2022-03-23 20:26:12 +08:00 via iPhone
    @guoooo00oohao

    还有 terraform 升级到 plumi 的费用呢
    guoooo00oohao
        6
    guoooo00oohao  
       2022-03-23 20:50:28 +08:00 via iPhone
    @defunct9 你是楼主么?

    这个不太好评估 具体取决于你的 terraform 里面有多少逻辑
    defunct9
        7
    defunct9  
       2022-03-23 21:35:47 +08:00 via iPhone
    @guoooo00oohao

    我不是楼主。我是可以干这个活的人。
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2682 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 32ms UTC 09:12 PVG 17:12 LAX 01:12 JFK 04:12
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86