Minikube and Kubectl explained | Setup for Beginners | Kubernetes Tutorial 17

2024 ж. 14 Мам.
182 690 Рет қаралды

What is Minikube? What is Kubectl? Minikube and Kubectl setup for beginners. Setup a minikube cluster locally.
► Subscribe To Me on KZhead: bit.ly/2z5rvTV
Usually in a production cluster setup you will have multiple master and worker nodes on separate machines. 💪🏼 But what if you want to test something on your local machine or try something out Setting up the whole cluster would be difficult or even impossible. 🤨
For that use case you can use *minikube*: a ONE Node cluster, where the master and worker processes are on the same machine.
*Kubectl*, the command line tool for Kubernetes, then enables the interaction with the cluster: to create pods, services and other components.
▬▬▬▬▬▬ T I M E S T A M P S
0:00 - Intro
0:12 - What is minikube?
2:16 - What is kubectl?
4:13 - install minikube and kubectl
6:50 - create and start a minikube cluster
10:00 - start the cluster in debug mode
Installation guide for Minikube (Mac, Linux and Windows): minikube.sigs.k8s.io/docs/start/
Installation guide for Kubectl: kubernetes.io/docs/tasks/tool...
If you are using Mac, you can follow along the commands. I listed them all here:
gitlab.com/nanuchi/kubernetes...
-------------------------------------------------------------------------------------------------------
What is Kubernetes? 👉🏼 • What is Kubernetes | K...
Kubernetes Components explained? 👉🏼 • Kubernetes Components ...
For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible. Also please let me know what you want to learn about Docker & Kubernetes.
#kubernetes #kubernetestutorial #devops #techworldwithnana
-------------------------------------------------------------------------------------------------------
This video is the 17th of a complete series for beginners. At the end of this tutorial you will fully understand Docker and Kubernetes.
⭐️ Full Playlist: • Docker and Kubernetes ...
-------------------------------------------------------------------------------------
The complete step-by-step guide to Docker and Kubernetes will include the following topics:
🐳 DOCKER basics:
- Container concept
- Why docker? (image vs. traditional DevOps)
- Install docker on different operating systems
- 8 basic commands you need to know (2 parts)
- Docker vs. Virtual Machine
- Docker in Practice: Overview of whole development process with Docker (development, continuous delivery, deployment) Probably 3-5 videos including Docker-Compose, Dockerfile, Private Repository.
- Docker Volumes in theory and practice
✵ KUBERNETES basics:
- Main Kubernetes components (including Pod, Service, Ingress, Volumes, ConfigMap, Secrets, Deployment, StatefulSet)
- Kubernetes architecture for beginners (master, slave nodes & processes)
- How Kubernetes makes high availability, scalability and disaster recovery possible
- Minikube, Kubectl - set up the cluster
- Kubectl basic commands - Demo
- Configuration file (YAML) - syntax
- Communication between the pods - basic networking concepts in Kubernetes
- K8s Deployment in practice - example application deployment (pod + service + Ingress + secret)
- K8s Volumes explained
- K8s Namespaces
-----------------------------------------------------------------------------------
✅ Connect with me
Subscribe on KZhead: ► kzhead.info...
DEV: ► dev.to/techworld_with_nana
Instagram: ► / techworld_with_nana
Twitter: ► / njuchi_
Legal Notice:
Kubernetes and the Kubernetes logo are trademarks or registered trademarks of The Linux Foundation in the United States and/or other countries. The Linux Foundation and other parties may also have trademark rights in other terms used herein. This video is not accredited, certified, affiliated with, nor endorsed by Kubernetes or The Linux Foundation.

Пікірлер
  • If you have any problems in the installation process, ask in the comments and I will try to help you 👩🏻‍💻 0:12 - What is minikube? 2:16 - What is kubectl? 4:13 - install minikube and kubectl 6:50 - create and start a minikube cluster 10:00 - start the cluster in debug mode Installation guide for Minikube (Mac, Linux and Windows): minikube.sigs.k8s.io/docs/start/ Installation guide for Kubectl: kubernetes.io/docs/tasks/tools/install-kubectl/ If you are using Mac, you can follow along the commands. I listed them all here: gitlab.com/nanuchi/kubernetes-tutorial-series-youtube/blob/master/basic-kubectl-commands/cli-commands.md

    @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
    • Good Morning ma'am... I am unable to install hyper kit in my MAC. it says "no bottle available ..you can try installing from source"....if you can help me in installing...would be grateful to you..Thanks in advance

      @futuristicapproach@futuristicapproach2 жыл бұрын
  • Still relevant today and one of the best i have seen explaining it in simple terms. Thank you so much!

    @berrydust-jb2sf@berrydust-jb2sf9 күн бұрын
  • Nana, you are one of the best, really. I adore and appreciate your work so much!

    @alenamitnovizki3857@alenamitnovizki38572 жыл бұрын
  • I had a great challenge installing the docker, Kubernetes and minikube for my computer assignment and this video has helped me. Thank you so much. I had to subscribe...

    @tiffanyforbes8781@tiffanyforbes87815 ай бұрын
  • Right on the money, most lucid explanation I had so far

    @asankasiriwardena3383@asankasiriwardena3383 Жыл бұрын
  • Hi Nana, I must appreciate your efforts for the Kubernetes series, one of the best available on youtube 👌 Can you please also make video on how to setup cluster on aws ec2?

    @ShivamSingh-et4bj@ShivamSingh-et4bj3 жыл бұрын
  • Loved your way of explaining. Very well done :)

    @sam.ammatouri@sam.ammatouri2 жыл бұрын
  • Hey, thanks for such an amazing video. It has to be one of the most lucid explanations of the topic on this platform!

    @aashishchaubeyschannel2676@aashishchaubeyschannel26763 жыл бұрын
    • Wow thanks Aashish, really happy to hear that my effort translates in videos, which are so helpful for you guys! 💙 Please like and share :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Since I have Docker installed on my Ubuntu laptop, I used "minikube start --driver=docker" instead of other hypervisor, great tutorial by the way, enjoying this series.

    @Poqonos@Poqonos4 жыл бұрын
    • Thank your for the nice feedback 🙏

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
    • there is a list of supported hypervisors depending on your OS here: minikube.sigs.k8s.io/docs/drivers/

      @mostinho7@mostinho73 жыл бұрын
    • I think by-default also "minikube start" picks docker, if we do not mention anything?

      @rahulaggarwal3817@rahulaggarwal38172 жыл бұрын
  • Great video tutorial series Nana. BTW, would be nice if you do a revision of this tutorial because Minikube now support multi-node setup, and also can run atop Docker (in same way as Kind).

    @BanibrataDutta@BanibrataDutta3 жыл бұрын
  • great tutorial, such clear explanations. Thank you for creating this series

    @AjayGupta27@AjayGupta273 жыл бұрын
    • You're welcome Ajay. Please don't forget to share. 🙂

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • thanx, Nana for your simple English you big tutor.

    @engalibadouin5222@engalibadouin52222 жыл бұрын
  • This crash course makes zero to hero lots of effort it was wonderful guidence Nana.... I request you to post some videos on microk8s

    @nandakumar7659@nandakumar7659 Жыл бұрын
  • It was really helpful, easy and to the point. Respect ++

    @aliazlanaziz@aliazlanaziz3 жыл бұрын
  • Best video ever, thanks for such an amazing content.

    @nawnitsen7771@nawnitsen77712 жыл бұрын
  • Done thanks took notes in onenote Starts at 2:30 API server is the entry point to the cluster you use it to do anything on the cluster

    @mostinho7@mostinho73 жыл бұрын
  • Thank you so much for this informative video. It would be awesome to have another one discussing how to run the node with docker-desktop or how it differs from minikube.

    @ALEJANDROMESIAS@ALEJANDROMESIAS4 жыл бұрын
    • Thank you Alejandro!

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
  • Wow! that was really helpful...Thanks Nana

    @adityadeshmukh1689@adityadeshmukh1689 Жыл бұрын
  • Great session! Thank you!

    @ashokkumarsivasankaran5428@ashokkumarsivasankaran54283 жыл бұрын
  • great way of explanation

    @sureshpal5569@sureshpal55697 ай бұрын
  • Very good tutorial video. Thanks.

    @qichaozhu1584@qichaozhu1584Ай бұрын
  • Thank a lot very helpful content.. looking for full course. If possible pls upload.

    @krishnasinghpratap@krishnasinghpratap4 жыл бұрын
  • Nicely explained. Thank you, :)

    @atulful@atulful3 жыл бұрын
  • Amazing video! Thank you a lot!

    @ariasalmeida@ariasalmeida3 жыл бұрын
  • Nice video with very clear instructions.

    @nirmalgreen1@nirmalgreen14 жыл бұрын
    • Thanks!

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
  • Super useful, thank you!

    @BenLansdell@BenLansdell Жыл бұрын
  • Thanks for the video very useful for me that I'm kind of new with k8s and all this stuff 😊very good quality and explanation, subscribed !!!

    @AlexGhoro@AlexGhoro3 жыл бұрын
    • Great to hear 🙂 Thank you!

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Great Tutorial Nana!

    @zakariachahboun@zakariachahboun3 жыл бұрын
    • Thank you Zak and stay safe. 🙂

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Thanks for your great videos, it is helps a lot, keep going please

    @AhmadEzzeir@AhmadEzzeir4 жыл бұрын
    • Thanks a lot Ahmad! :)

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
  • Thank you Nana :)

    @danylunny8142@danylunny81423 ай бұрын
  • Hello Nana, You probably know that already, the latest minikube install I have uses --driver instead of --vm-driver which is deprecated. Thanks, I love your presentation style.

    @abduchadili5691@abduchadili56913 жыл бұрын
    • Just one more note: If you use Docker... it will detect it and use the docker driver by default on Ubuntu Linux.

      @alexandrevalente9994@alexandrevalente99942 жыл бұрын
  • Thanks for the video

    @afripy@afripy Жыл бұрын
  • Another very useful “getting started” video. Thanks! I’m wondering a bit still about resource provisioning “rules of thumb” if I were to adapt an existing in-production setup to my local dev machine?

    @markcampanelli@markcampanelli Жыл бұрын
  • All videos are very helpful and easy to understand. Thanks for your effort. Can you please post more videos for DevOps

    @ashokvaddevalli@ashokvaddevalli4 жыл бұрын
    • Next video already coming tomorrow about K8s Ingress and Helm later. Which DevOps topics would interest you specifically?

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
    • Ansible, Git, AWS, Terraform, Gradle etc... I think you have experience with programming language? Are you planning to post in future any programming language like Python 🐍

      @ashokvaddevalli@ashokvaddevalli4 жыл бұрын
    • @@ashokvaddevalli Thanks for your input! Yes I have experience as a software developer and I will be posting tutorials for programming languages starting with Python.

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
  • Hey Nana, thank you for such informative video. Actually I'm still stuck on the installation part on windows 10 OS. Could you please guide how to install it on windows 10 using docker desktop?

    @aditinagar6688@aditinagar66882 жыл бұрын
  • Hey Nana, Thanks for the videos u post in your channel, I have learned quite a bit from your videos 🙂 I tried setting up a minikube cluster on an AWS EC2, set up a few services(nodeports), enabled ingress, opened ports and tried accessing the deployed services/ ingress using the EC2s public IP and ingress port, but I'm not able to access the services or the ingress. Is it like minikube will work only on local host? I am able use the same ymls in Rancher perfectly fine.

    @jestmal@jestmal3 жыл бұрын
  • Thanks for the video it help a lot, I just wanted to know when we write command minikube start and looking for action it basically "preparing kubernetes on docker" what basically happing in background?

    @niteshghosh38@niteshghosh383 жыл бұрын
  • This is a great tutorial! Do you know if you can install Minikube without an internet connection? For example if you have the installation file already downloaded but want to install it on a machine with no internet access? Does it try to download other dependencies as part of the installation process, or will it install without issue?

    @AudioManiiac@AudioManiiac4 жыл бұрын
  • Hi @NANA its really amazing video......

    @user-ik3yi3uo7q@user-ik3yi3uo7q5 ай бұрын
  • It's really awesome :) Thanks

    @akashpatel2299@akashpatel22993 жыл бұрын
    • Glad it's so helpful 🙂

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Hi Nana, thanks for the time to post these helpful videos. I am facing the challenge to install hyperkit on my Mac M1 chip. Please help me. Thank you.

    @rajeshkothapeta287@rajeshkothapeta2876 ай бұрын
  • good video!

    @local_lion@local_lion3 жыл бұрын
  • Thanks for the detailed explanation of Minikube and Kubectl. I just have one query on the Kubectl version command. You mentioned there is a client and server version of Kubernetes running. Could you please clarify on that?

    @bala2792@bala2792 Жыл бұрын
  • Nana, thank you so much for this awesome video. I have just subscribed and shared your channel with my buddy as we are dabbling into Kubernetes. Is it possible to run Minikub on any VM running on Azure or Windows 11 local Hypervisor?

    @ModyKhan@ModyKhan2 жыл бұрын
  • great video, question how do I connect from a different server (kubectl) to the minikube VM?

    @EduardKhiaev@EduardKhiaev3 жыл бұрын
  • Thanks!!

    @richlotta@richlotta3 жыл бұрын
  • make a vid. on installation of minicube and kubectl on ec2 instance

    @shubhamrokade6086@shubhamrokade60863 ай бұрын
  • Hi Nana, How to install k8s Hardway in On-prem environment. Do you have any instructions or steps. Please share or plan for a video. That will be awesome

    @babusasidhar@babusasidhar3 жыл бұрын
  • God Bless You :)

    @sanooosai@sanooosai2 жыл бұрын
  • What is "server version" at 9:50? Awesome videos btw!

    @rakeshmali1727@rakeshmali17273 жыл бұрын
  • Hi Nana Thanks for your good videos!!!! I didn't use any hypervisor while installing the minikube. Is it is mandatory to install ? I'm using windows os in my system.

    @monikaramadoss5984@monikaramadoss598410 ай бұрын
  • What an amazing video, with such a great explanation. I wondering how can add second node in minikube?

    @edgarsanchezprado8879@edgarsanchezprado88793 жыл бұрын
    • I think you can't it's a single node with a single pod inside it.

      @Justicewarrior795@Justicewarrior7953 жыл бұрын
    • Nope, one cluster, one master, one worker, That's it which is enough for local dev.

      @abduchadili5691@abduchadili56913 жыл бұрын
  • Good ! When a microk8s course ?

    @PeterMoueza@PeterMoueza3 жыл бұрын
  • Hi, I saw that you got only the master node. What about an additional worker node? how is it done?

    @shlomi8129@shlomi81293 жыл бұрын
  • My question minikube acts as a vm image run on hypervisor ? 2)if kube ctl configured in laptop , how it interact with minicube vm ?

    @venkatapradeepgopisetty3494@venkatapradeepgopisetty34943 жыл бұрын
  • How to set minikube pull images from private registry? Thanx

    @lyesmek7741@lyesmek77412 жыл бұрын
  • hi Nana ! could you share what keyboard do you have ? the sound is very soothing hehe. Thank you !

    @jonathanberrios7773@jonathanberrios777311 ай бұрын
  • how to get volumes mounts to perform on this minikube .. ?

    @machireddyshyamsunder987@machireddyshyamsunder9873 жыл бұрын
  • Hi Nana, can we use minikube or do we need minikube to access an aks cluster too?

    @gokusaiyan6809@gokusaiyan68092 жыл бұрын
  • How do you set your terminal with the icons on the left side?

    @XxMissingDataxX@XxMissingDataxX3 жыл бұрын
  • hey Nana, we are using docker desktop (windows ) to connect the cluster , we are using kubectl command , how can i set up a k alias for kubectl on docker desktop (windows) any idea .

    @bijayajena6756@bijayajena67562 жыл бұрын
  • Hey. I want to know how can I create a worker node other than minikube?

    @siddhantsingh4890@siddhantsingh48903 жыл бұрын
  • Thanks Nana..can i take all the full course in each and every devops topics?

    @963258741ydhfcvn@963258741ydhfcvn4 жыл бұрын
    • Which devops topics interest you?

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
  • Is that possible to install multinode cluster using minikube?

    @yogeshjagadale7385@yogeshjagadale73853 жыл бұрын
  • Hi Nana , is there any way to install this setup over VMware?

    @priyankagurjer6285@priyankagurjer62852 жыл бұрын
  • Now that the docker runtime isn't supported, what's changed?

    @44Kokoloko@44Kokoloko2 жыл бұрын
  • How to install minikube on aws ec2?

    @arpitasrivastava9674@arpitasrivastava96743 жыл бұрын
  • Fast forward to 6:58 to get to the general and practical commands. At using minikube.

    @DonPierreHalfaway@DonPierreHalfaway3 жыл бұрын
  • If you are on Windows 10 *Home*: 1. install Docker Desktop 2. install Chocolatey 3. \> choco install minikube 4. \> minikube start --driver=docker

    @lucasterable@lucasterable2 жыл бұрын
  • what is the reason that minikube or kubernetes needs virutalization compulsorily to run??

    @kevaljoshi1711@kevaljoshi17112 жыл бұрын
  • I have a M1 mac, I can't install hyperkit, what should I do?

    @tomxu4254@tomxu42543 ай бұрын
  • How can i run my minikube in centos vm machine

    @techsingh1655@techsingh16553 жыл бұрын
  • Thanks Nana

    @dorbenmoyal7639@dorbenmoyal76393 жыл бұрын
  • Hi Nana, Naz Here. i am trying to install kubernetes on my virtual machine which is a linux how will i get it working on there. 1. my actual laptop is a window OS and doing all my kubernetes stuff on the virtual box on ubuntu. can you please guide me how to successfully install kubectl with minikube please and the steps to get docker as well. am fairly new to this . anay help would be appreciated! :)

    @techmcnaz1978@techmcnaz19783 жыл бұрын
  • Which editor you are using to Start the Minikube Cluster. It is also having emojis on the left that is so cool. Kindly tell me please :)

    @bilalmujahid9239@bilalmujahid92393 жыл бұрын
    • It's a terminal program, not an editor. I use iterm2 on a Mac and see these emojis.

      @nickmills8476@nickmills84763 жыл бұрын
  • People with m1/m2 arm, try `brew install qemu` instead of hyperkit

    @SAINIVEDH@SAINIVEDH3 ай бұрын
  • i got a problem when install hyperkit :{ . could you suggest me how to deal with it ?

    @andreawijayakusuma6008@andreawijayakusuma60082 жыл бұрын
  • Hi, why you use hyperkit, but not virtualbox or parallels. What is advantage?

    @alexandersmirnov4274@alexandersmirnov42744 жыл бұрын
    • Hi Alexander. I don't think there is any difference for this specific use case. You can use any.

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
  • Hi, Do you have videos to config high Availably in minikube ?

    @kukishnashok478@kukishnashok4784 жыл бұрын
    • No, I don't. Maybe will do a video on HA on one of the cloud platforms

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
    • @@TechWorldwithNana sounds good

      @kukishnashok478@kukishnashok4784 жыл бұрын
  • How adding multiple master nodes will help cluster to be more robust ? How kubernetes manage operations between the master nodes ?

    @factsgram110@factsgram110 Жыл бұрын
  • a happy person uses a hypervisor on a mac

    @axea4554@axea45542 жыл бұрын
  • Hi There, How can I start creating Objects in minikube? Could we get a .yalm file and run it as a local app? Thanks

    @GymCoders@GymCoders4 жыл бұрын
    • Hi Cristhian, you can do that with kubectl apply -f yaml-file-name.yaml. If you need some example yaml files, I put all my demo files from the videos here: gitlab.com/nanuchi/kubernetes-tutorial-series-youtube Let me know if this answers your question

      @TechWorldwithNana@TechWorldwithNana4 жыл бұрын
  • i am facing a error on command kubectl get nodes error is "The connection to the server localhost:8080 and 6443 was refused - did you specify the right host or port?" i have tried all options on the internet but nothing still getting this error i have tried the official doc but i was not able solve this problem .

    @rahulkatrap9079@rahulkatrap90792 ай бұрын
  • Nana always stops at what I don't know😅

    @davidlee588@davidlee58811 ай бұрын
  • I am trying to run minikube start --vm-driver=hyperkit error:Starting local Kubernetes cluster... F0926 10:19:28.250134 4156 cluster.go:449] Unsupported driver: hyperkit any idea how to solve this . please help me with this

    @AmitKumar-ik3os@AmitKumar-ik3os Жыл бұрын
  • I am facing problems in setting up this whole minicube in linux...if possible can you help and post a video for that

    @RavinderSingh-oq5cn@RavinderSingh-oq5cn3 жыл бұрын
    • What problems do you have? What errors do you get?

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
    • @@TechWorldwithNana I resolved it...it's working fine now...actually i was not able to install vm as i am using linux machine remotely. So i tried the "--vm-driver=none" option n it worked just fine for me.

      @RavinderSingh-oq5cn@RavinderSingh-oq5cn3 жыл бұрын
  • ⭐⭐⭐⭐⭐🤩

    @happylearningtricks@happylearningtricks Жыл бұрын
  • Just FYI - if you have dockeminikuber desktop installed on your machine, you can just use that instead of minikube

    @varunsharma1889@varunsharma1889 Жыл бұрын
  • I am running on a VM, and used this to try to start minikube: $ minikube start --driver=docker ... But then it gets stuck and fails with this error: .... main.main /app/cmd/minikube/main.go:71 runtime.main /usr/local/go/src/runtime/proc.go:203 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1373 Advice:Try 'minikube delete', and disable any conflicting VPN or firewall software URL: Issues:[7072] ShowIssueLink:false} * [CREATE_TIMEOUT] error provisioning host Failed to start host: creating host: create host timed out in 360.000000 seconds * Suggestion: Try 'minikube delete', and disable any conflicting VPN or firewall software * Related issue: github.com/kubernetes/minikube/issues/7072 andrew@dockerlive: Help, I dont know how to fix this.

    @be236@be2363 жыл бұрын
  • 880th like by me.

    @forextrader2199@forextrader21993 жыл бұрын
  • thank you, I'm learning apache beam and flink and the book has some install inscripts and I wanted to know what the fuck were those things! arigatou from mexico

    @FrederickAlvarez_@FrederickAlvarez_ Жыл бұрын
  • seriously, still 1 dislike ????

    @creative-commons-videos@creative-commons-videos3 жыл бұрын
KZhead