Create AWS EC2 instance and execute below commands as a root.
Instance Type: t2.medium
1 yum update -y
2 yum install docker -y
3 systemctl enable docker
4 systemctl start docker
5 docker ps
6 curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
7 chmod +x ./kubectl
8 sudo mv ./kubectl /usr/local/bin/kubectl
9 kubectl
10 curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
11 sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64
12 ls -lrt
13 minikube
14 minikube start --force --driver=docker
[root@ip-172-31-29-80 ~]# kubectl run mywebapp --image=nginx
pod/mywebapp created
No comments:
Post a Comment