Running Minikube Kubernetes Cluster on AWS EC2
This tutorial will show how to install Minikube on AWS EC2 instance.
Commands used:
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
--install docker
sudo apt-get update && \
sudo apt-get install docker.io -y
--Install Minikube
curl -Lo minikube https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqblF2WFNDakFqY0pZTXczQUJfTHdkc1JKdXRLQXxBQ3Jtc0tsUkJnTFQxTTRhNjBDQlVNUjlxWktzSUsxVXVfTnlvWjZRQXBSM0NfR3VnUDFkSUtDeWdKdm5FMHoycTZDX1Z1aWxjMDYtLUVxQ1oxUlJRaTQ4MWQ0a2RpSEd5ei1kWnZLa1B5Q2tLd0g2V3I3TnB1RQ&q=https%3A%2F%2Fstorage.googleapis.com%2Fminikube%2Freleases%2Flatest%2Fminikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
--Check Minikube Version
minikube version
--Running Minikube on EC2 Ubuntu
sudo -i
minikube start --vm-driver=none
minikube status
--Let us run our first container
kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080
kubectl get pods
kubectl create deployment hello-minikube --image=gcr.io/google_containers/echoserver:1.4
kubectl get deployments
kubectl expose deployment hello-minikube --type=NodePort --port=8080
kubectl get services
Note: If you get error while starting minikube please use the below command
sudo apt-get install -y conntrack
Minikube is commonly described as a way for people to get some hands-on experience with Kubernetes by managing a cluster locally. It can also be used in day-to-day development tasks.
Does Minikube require Docker?
The kubecluster running inside the minikube vm actually uses Docker to run all the containers. So when you create kubernetes objects, e.g. pods, then you can use the docker cli to view the underlying containers that have been created. You might want to do this for troubleshooting/debugging purposes.
Can Kubernetes run without Docker?
Quite the contrary; Kubernetes can run without Docker and Docker can function without Kubernetes. But Kubernetes can (and does) benefit greatly from Docker and vice versa. Docker is a standalone software that can be installed on any computer to run containerized applications.
Can Minikube be used for production?
No, you shouldn't use Minikube in production. Minikube is limited to a single node (for now, anyway), and does not run the containers on the host, which results in inferior performance. Instead it uses a “hypervisor”, e.g. VirtualBox, VMware Fusion or KVM depending on the platform.
#Kubernetes #Minikube #AWS
Видео Running Minikube Kubernetes Cluster on AWS EC2 автора Python приключения
Видео Running Minikube Kubernetes Cluster on AWS EC2 автора Python приключения
Информация
4 декабря 2023 г. 3:49:47
00:09:18
Похожие видео


















![Jira & Confluence 2022: 3 Vantagens de Usar Jira e Confluence Juntos [Como Usar] ? Tutorial Complet](http://pic.rutubelist.ru/video/86/00/8600dc9014f66cc8e4b90a91bd186eb7.jpg?size=s)
