Hongbin's Blog

vuePress-theme-reco Hongbin's Blog    2021
Hongbin's Blog Hongbin's Blog

Choose mode

  • dark
  • auto
  • light
GitHub
Category
  • article
  • note
  • tip
  • draft
  • log
  • recette
Tag
Home
TimeLine

Hongbin's Blog

13

Article

13

Tag

GitHub
Category
  • article
  • note
  • tip
  • draft
  • log
  • recette
Tag
Home
TimeLine
  • Deploy cluster on Amazon Linux 2 with 1 vCPU

    • Install Minikube and failed to run
      • Install Kind and not feasible to use

      Deploy cluster on Amazon Linux 2 with 1 vCPU

      vuePress-theme-reco Hongbin's Blog    2021

      Deploy cluster on Amazon Linux 2 with 1 vCPU


      Hongbin 2020-10-17 awsOsImage

      # Summary

      Amazon Linux is a Redhat&CentOS-like OS
      yum, rpm available
      MiniKube requires at least 2 logical processors
      Kind can be used to install Kubernetes Cluster on 1 vcpu LightSail but the performance is poor
      
      1
      2
      3
      4

      # Notes

      Recently I have a need to test some Kubernetes use cases. So I deployed a minikube on an Amazon LightSail instance (I thought kubeadm/kops is better, but for the sake efficiency, just do it quickly and try them later would be better) . The instance is Amazon Linux 2(IDK what it's differet from one).

      image

      So I went to check os-relase to know what environment is actually.

      image

      And a few quick tests showed yum & rpm is available.

      image

      # Install Minikube and failed to run

      Then install docker, minikube according to Minikube instruction.

      image image image

      Then start docker service and start minikube service. But the attempt of initiating MiniKube failed due to the insufficient CPUs.

      image image

      So I can use 4 logical processors on my laptop but here I can only use 1...😦

      image

      # Install Kind and not feasible to use

      And I switched to use another cluster implement kind. However, after I installed it, the performance of running sudo-level commands becomes really poor.

      image image image

      By now IDK exactly the reason contributing to this poor performance. Since it only happens after I started kind service, a high chance that the reason is it. Or another reason can be, the credits of lightsail are all consumed.