Deploy cluster on Amazon Linux 2 with 1 vCPU
# 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
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).
So I went to check os-relase to know what environment is actually.
And a few quick tests showed yum & rpm is available.
# Install Minikube and failed to run
Then install docker
, minikube
according to Minikube instruction.
Then start docker service and start minikube service. But the attempt of initiating MiniKube failed due to the insufficient CPUs.
So I can use 4 logical processors on my laptop but here I can only use 1...😦
# 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.
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.