一个简单的 DevOps 项目,实现用 Packer build machine image, 用 Pulumi 来 provision 服务器和安装 Kubernetes ,创建服务器后 Ansible Playbook 来跑一些常规 package update 的命令
有兴趣联系 VjogU3BvdF9MaWdodF8=
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. |
2
defunct9 2022-03-23 16:32:44 +08:00
升级 terraform 到 pulumi ,然后用 packer 打出 qcow2 的 kvm 镜像,镜像中包含 ansible ,然后 pulumi 用这镜像安装 Rancher cluster 。
|
3
defunct9 2022-03-23 16:42:26 +08:00
我是来看大神们的报价来的,这个多少合适。
|
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 不属于一次性工作,按照基本功时计费. |
5
defunct9 2022-03-23 20:26:12 +08:00 via iPhone
|
6
guoooo00oohao 2022-03-23 20:50:28 +08:00 via iPhone
|
7
defunct9 2022-03-23 21:35:47 +08:00 via iPhone
|