Practical
Вставка
- Опубліковано 20 січ 2025
- Practical Kubernetes in 2 Hours: LAB setup in ubuntu 20.04 LTS OR 22.04 LTS (All commands used below agenda)
Agenda for this playlist:
K8s Local Development - Minikube setup on Ubuntu 20.04 LTS OR 22.04 LTS (VS Code Remote SSH)
K8s Terms, terminologies
K8 Cluster
Pod Creation
Deployment creation
Service creation
Running Node.js app using K8
Rolling Updates and Pod discovery
YAML spec files
Multi Deployment creation
Interaction between deployments
LAB setup in ubuntu 20.04 LTS
Commands :
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install curl
sudo apt-get install apt-transport-https
sudo apt install conntrack
Install docker:
curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh
ls -l var/run/docker.sock
sudo usermod -aG docker $USER && newgrp docker
Minikube:
curl -LO storage.google...
sudo mv minikube-linux-amd64 /usr/local/bin/minikube
sudo chmod +x /usr/local/bin/minikube
minikube version
Kubectl:
curl -LO "dl.k8s.io/rele... -L -s dl.k8s.io/rele..."
sudo mv kubectl /usr/local/bin/kubectl
sudo chmod +x /usr/local/bin/kubectl
kubectl version --client
minikube status
kubectl cluster-info
oooh man thank you so much.... stucked in Minikube for last 4 days.... love the way you explained it
How can I resolve this issues ----
X Exiting due to DRV_AS_ROOT: The "docker" driver should not be used with root privileges.
thanks, you're a legend.
please where is the video on connecting your Visual studio code to Ubuntu.
Brother, I want to thank you from the bottom of my heart, because I have been scratching my head about this installation for last 3 days, did every possible way to run the pods but was getting container network configuration errors. But the way you followed the steps for docker, minikube and kubectl installation resolved my issue. God bless you.
Thank you for the nice words!
Hello brother I am unable to setup these kinds of things when I set up a minikube Start then it will show an error how I can resolve this issue.
Thank you so much for this video. I tried many videos and still i was getting back to back different errors. Like .. permission denied error, install cri-dockerd error, etc. searched on github but no luck. You have made the installation so easy. I loved the way to explain things. Looking forward for your next video.
Thank you for your nice words!
Thanks a lot brother it works
Happy to help! :)
after running the command , minikube start it will show this kind of thing ---------------
X Exiting due to DRV_AS_ROOT: The "docker" driver should not be used with root privileges. , how I resolve this kind of issue can you help me for resolving this kind of issue
Thanks bro..
Your Welcome :)
Hi
when I am running the command minkube start the show this kind of error
X Exiting due to DRV_AS_ROOT: The "docker" driver should not be used with root privileges.
How can I resolve this, can you help me
Thankyou finally started minikube. One question is that we took t2 xlarge for that how much bill will suppose if it's for 5 days
$44.55 on demand instances
Unable to start
sir I face this error, my node status is showing "not ready" please help me anyone..
root@ip-172-31-11-142:/home/ubuntu# kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-172-31-11-142 NotReady control-plane 11m v1.25.3