If you wish to run containers on the scale, then Docker and Kubernetes are two of the most important tools at your disposal. With the help of this tool, you will be able to manage your cloud resources and develop cloud-based scalable apps. So, if you are in need of the tool Kubernetes, you have come to the right page, because here we are going to let you know how you can install Kubernetes on windows 10. After this page, it will become quite easy for you to install this tool on your machine and set it up. With the help of the docker tool in your system, your machine will be all set to scale the application. We are going to mention step by step by guides for you so that you can follow them at your ease. Furthermore, we are going to let you know how you can make a great career in this field and can learn from the best for DevOps Certification. But before we dive straight into the installation process, let us jog our memory a little and know about Kubernetes and why it is one of the most in-demand tools right now!
As mentioned above, Kubernetes is a container-based platform that is used to manage cloud resources as well as help in developing scalable applications. This is one of the platforms that can be used for automating, deploying, and scaling the entire cloud infrastructure in the project. This is an open-source cloud tool and the great thing is that it runs on all the operating systems. Not only it is going to help you to scale the entire infrastructure, but it is also going to monitor each of the service’s health. This acts as a load balancer and automates the deployments, making it easier to manage the whole process. Using this tool, the developers are able to deploy the pods *docker containers) and other services across the cloud by installing and configuring as many clusters as you need as per the requirements.
One of the main advantages that come with this tool is that allows the users to schedule and run the Linux containers in physical or VM Clusters. Although it is a Linux technology, it is possible to run this tool on windows as well. And in the roadmap that we are going to share in the article below, you will be able to install Kubernetes on windows and work on it as per your requirements.
Its main advantage is that it allows users to schedule and run Linux containers in physical or VM clusters. Although it is primarily a Linux technology, running Kubernetes on Windows is possible. You will be able to manage and monitor everything with the steps and the guide that we are going to share below.
There are some things that you need to take care of when you are going to install this tool on your machine. The prerequisites are mentioned as follows for both hardware and software:
· Master node with at least 2 GB memory. (Additional will be great)
· Worker node with 700 MB memory capacity.
· Your Mouse/Keyboard (monitor navigation)
· Docker Desktop
· Unique MAC address
· Unique product UUID for every node
Apart from this, you need to make sure that there is a full range of connectivity among all the machines that are part of the cluster is very much pivotal.
Your step-by-step guide to installing Kubernetes in your system
Step 1: Install and Setup Hyper-V
Now that you are going to install this application on the Windows operating system, you will first need to install and set up Hyper-V in your system. It is kind of like VirtualBox and using this, you can manage the virtual machines using the default GUI tool that is provided by Microsoft for free or even using the command line. Enabling this tool in your system is quite easy but there are certain things that you need to do before running this on your machine. These requirements are: Your OS should be Windows 10 which can be Enterprise, Pro, or Education with a minimum of 4GB RAM. There should be CPU Virtualization support available. If you are not sure of this, then you can have a look at this setting in your BIOS setting in your machine.
There could be some features that you need to add or remove which do not come with the pre-installed windows on your machine. You need to make sure that you are connected to the internet as there could be some features that will require internet access to download those components further on windows updates. Then you can follow the below-mentioned steps to enable Hyper-V in your machine:
1. Open the control panel in your system.
2. Locate Properties on your left panel and open it.
3. Now click the Program and Features which is followed by Turn Windows Features on and off.
4. Now look for Hyper-V and Windows Hypervisor Platform.
5. Now click OK.
With this click, the system will start installing Hyper-V in the background. You may reboot a couple of times to make sure that it is configured properly. You can the following command to make sure that Hyper-V is installed successfully on your machine as Administrator on PowerShell.
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
Step 2: Install the Docker application
As we are aware of the fact that Kubernetes is the container orchestration system that is built on top of Docker, we need to install docker essentially. It is the tool that is needed for communicating with Docker containers and also managing various things at an enterprise level. For this, you can simply go and install the Docker and get the Docker Desktop for Windows (stable). This is the version of Docker that is optimized for Windows 10. This is now a native application that is used for developing, shipping, and running dockized apps simply. The highlighting feature of this application is that it is very reliable and fast. As it used windows native Hyper-V virtualization and networking, it makes it the fastest. Also, if you are using the Docker desktop for windows, then you are able to run the docker containers on both Linux as well windows.
Now we are going to mention some of the steps that you can follow to install Docker Desktop for windows.
1. Double click on the Docker for Window installer and this will start the installation.
2. Docker will not be started automatically once the installation is completed. You can locate the whale symbol in the notification area which will suggest that it is running and can be accessed from the terminal.
3. Now click on RUN.
4. You can now try out some of the common docker commands in the command line terminal like PowerShell.
5. You can check the Docker Version
6. Run Docker run hello-world to make sure that docker is able to pull and run images and with this, your application is all set to be used.
7. You are able to access this application from the terminal as long the desktop application for windows is running. You can access it from the UI.
Bonus Tip: If you are not able to locate the tray icon even after the installation was successfully done, then you might need to restart your computer. Troubleshoot your system if this still persists and follow the measures to resolve the issues.
Step 3: Install Kubernetes on Windows 10
When you have installed Docker in your system, you are going to have a handy GUI tool where you can modify some of the settings and install and enable Kubernetes. You can follow the below-mentioned steps to install Kubernetes in your system.
1. You need to right-click the Docker tray icon
2. Now click on "Settings"
3. On the left panel, you will find Kubernetes, click "Kubernetes"
4. Check Enable Kubernetes and click "Apply"
When you click apply, the installation is going to begin, it might take some time as Docker needs to install additional packages and dependencies. It makes take around 5-10 minutes depending on the internet speed and the performance of your system. You should not do anything till it says installation complete. Then you can make sure that everything is a working file using the docker app. If both Kubernetes and Docker are working fine and do not have any errors, then you will find both the icons of these tools as green at the bottom left.
Step 4: Install and access the Kubernetes dashboard
If you wish to use the Kubernetes resources then the official web-based UI for the same is by using the Kubernetes Dashboard. As it is not set up by default, you need to follow some steps. You can use the CLI tool Kubectl to deploy the Kubernetes application which will help you to interact with the cloud and manage the pods, nodes, and clusters present in your system. Furthermore, using the YAML configuration file, you can also create and update the Kubernetes resources by passing the apply argument. We are going to mention some commands which can be used to deploy and enable the Kubernetes dashboard in your application.
You can download the YAML Configuration file and use this to deploy it
. kubectl apply -f .\recommended.yaml
You can now check if this is up and running by using the command
kubectl.exe get -f .\recommended.yaml.txt
Now you can access this dashboard in two ways. The first way is to use the default token which is created during the installation and the second way is by creating users and giving them permission and then receiving the generated token. The second way is a more secure way.
1. Run the following command PowerShell (not cmd)
((kubectl -n kube-system describe secret default | Select-String "token:") -split " +")
2. Copy the generated token
4. Open the following link on your browser:
5. Select Token & paste the generated token
6. Sign In to your account
After this, you will be able to see the dashboard and the cloud resources that are set up correctly in your machine.
In this tutorial, we have come across the installation of two of the most important container managing tools that are widely used. Docker and Kubernetes are very easy to install and use and if you follow the steps mentioned above to install Kubernetes on windows, then you will face any issues. One of the main things to note here is that there is a fundamental difference between Kubernetes and Docker. While Kubernetes is meant to run across a cluster, Docker is supposed to run through nodes. There are various things that can be resolved if you are using these applications in your project.
So, if you are looking to make your career in this field, and want to know more about the DevOps concepts, then there is no better time than now. With StarAgile, you are going to get the best devops course training that is going to be a stepping stone for your career. Here you are going to get certified learning along with the hands-on experience that will help you build your career at great lengths. So, start now and give your best shot.
>4.5 ratings in Google