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

2022-03-23 16:22:12 +08:00
 dindingbell

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

有兴趣联系 VjogU3BvdF9MaWdodF8=

1017 次点击
所在节点    外包
7 条回复
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
2022-03-23 16:32:44 +08:00
升级 terraform 到 pulumi ,然后用 packer 打出 qcow2 的 kvm 镜像,镜像中包含 ansible ,然后 pulumi 用这镜像安装 Rancher cluster 。
defunct9
2022-03-23 16:42:26 +08:00
我是来看大神们的报价来的,这个多少合适。
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
2022-03-23 20:26:12 +08:00
@guoooo00oohao

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

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

我不是楼主。我是可以干这个活的人。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/842386

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX