Kubernetes cluster setup NOTES step by step using minikube
Server Requirement ...
2CPU & 4GB RAM -instance type t3.medium
30 GB disk space
step1: Login AWS Cloud
step2: create Linux server
step3: Login Linux Server
step4: switch to root user
(sudo -i)
step5: create user (useradd paparao(
create password
step:6 provide login access
nano /etc/ssh/sshd_config
step7: restart sshd service
service sshd restart
step8: provide sudo access
visudo and press enter
write below statement
paparao ALL=(ALL) NOPASSWD: ALL
Step9: Install docker software
yum install docker -y
step10: check the docker
docker --version
step11: add user into docker group
gpasswd -a <user-name> <docker group name>
gpasswd -a paparao docker
step12: start docker service
service docker start
step13: setup kubectl
(just use the below link only)
(just copy paste)
sudo curl --silent --location -o /usr/local/bin/kubectl https://dl.k8s.io/release/$(curl --silent --location https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl
provide access to others or a specific user to run kubectl command which is available in /usr/local/bin/kubectl
chmod o+x /usr/local/bin/kubectl
step14: download & install minikube software
(just use the below link only)
(just copy paste)
step14: download & install minikube software
(just use the below link only)
(just copy paste)
curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
swith from root user to paparao user
su - paparao
step15: start minikube
minikube start
step16: start work with k8s single node cluster
step17: check the status of minikube
minikube status
minikube start
step16: start work with k8s single node cluster
step17: check the status of minikube
minikube status
step18: check the minikube version
minikube version
step19: check the kubectl version
kubectl version
step20: check the cluster information
kubectl cluster-info
step21: check the cluster node
kubectl get nodes
step22: check the pods
kubectl get pods
step23: check the deployments
kubectl get deployments
----END---
Comments
Post a Comment