Skip to main content
Back to Blog
GitLab CIDevOpsVMwareAutoscalingInfrastructure

GitLab Runner Autoscaling with VMware vSphere

A step-by-step guide to configuring GitLab CI Runners to automatically scale up and down by provisioning Virtual Machines on VMware vSphere on demand.

1 min read

Old post url

Gitlab Runner Autoscaling With AWS Spot Instances

With VMware vSphere

အရင်ကတော့ runner autoscaling ကို aws spot instance နဲ့ရေးခဲ့ပြီးပါပြီ။ အရင် post ကိုမဖတ်ရသေးဘူးဆိုရင်တော့ ဒီလင့် မှာ သွားဖတ်လို့ရပါတယ်။ ခုကတော့ VMware vSphere နဲ့လည်းရမလားလုပ်ကြည့်တာ ရသွားလို့ ဒီ post ကိုရေးတာပါ။ online မှာလည်း ရှာမတွေ့တာနဲ့ လက်တည့်စမ်းကြည့်ရင်းရသွားတာပါ။ အကြောင်းအရာကတော့အရင် post နဲ့တူတူပဲဆိုတော့ အရှည်ကြီး မရေးတော့ပါဘူး။ setup and installation ကအရမ်းကြီးမကွာဘူး။ အရင် bastion host အတွက်သုံးခဲ့တဲ့ ec2 instance နေရာမှာ vSphere ထဲကျတော့ ubuntu vm ဝင်သွားတယ်။ အရင် post မှာပြောခဲ့သလိုပဲ bastion host က resource အများကြီးမလိုဘူး။ RAM 1GB/512MB နဲ့ CPU 1 Core လောက်ဆိုအဆင်ပြေတယ််။ အရင် spot instance အတွက်သုံးခဲ့တဲ့ docker-machine driver နေရာမှာ vSphere အတွက်ဟာလေး ပြောင်းသွားတယ်။ Sample config ကိုတော့ အောက်မှာ လေ့လာနိုင်ပါတယ်။

config.toml View config.toml on GitHub Gist

  • vmwarevsphere-username - USERNAME
  • vmwarevsphere-password - PASSWORD
  • vmwarevsphere-vcenter - IP/hostname for vCenter (or ESXi if connecting directly to a single host).
  • vmwarevsphere-datastore - Datastore for Docker VM
  • vmwarevsphere-cpu-count - CPU number for Docker VM
  • vmwarevsphere-memory-size - Size of memory for Docker VM (in MB)

တကယ်တော့ docker-machine အတွက် သုံးလို့ရတဲ့ driver မှန်သမျှ ဒီမှာ သုံးလို့ရပါတယ်။ Options တွေ လိုက် change ပေးရုံပါပဲ။ တစ်ချို့အတွက်အသုံးဝင်မယ်ထင်ပါတယ်။

Found this helpful?

Share this post