kubernetes setup on local - amresh087/newronaRepos GitHub Wiki
Local laptop setup and installations
1. Docker Desktop :
Docker Desktop is an easy-to-install application for your Mac or Windows
environment that enables you to build and share containerized applications and microservices.
Docker Desktop includes Docker Engine , Docker Cli client, Docker content Trust, Kubernetes, and Credential Helper.
Installation steps for docker desktop on windows.
Go to the link https://docs.docker.com/desktop/windows/install/
Note: When we are installed docker desktop on the local then you need to delete setting.json from docker install folder. Docker Desktop Restart again
If not resolved then followed below step
Docker Desktop for windows
-
Click on the button"Docker Desktop for Windows" to Download installer.
-
Double-click Docker Desktop Installer.exe to run the installer.
-
When prompted , ensure the Enable Hyper-V Windows features is selected on the Configuration page.
-
Follow the instructions on the installation wizard to authorize the installer and proceed whith the install.
-
When the installation is successful , click close to complete the installation process.
NOTE: Do not enable kubernates on docker desktop.
2. Minikube
Minikube is a tool that makes it easy to run kubernetes locally. Minikube runs a single-node
Kubernetes cluster inside a virtual Machine (VM)on your laptop for users looking to try out
Kubernetes or develop with it day-to-day.
Before installing minikube, we'll install kubectl
Installing kubectl
The Kubernetes command-line tool, kubectl,allows you to run commands against Kubernetes
clusters . You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs.
Steps to install kubectl on windows.
Go to https://kubernetes.io/docs/tasks/tools/#install-kubectl-on-windows to download the latest release of kubectl.
Please the downloaded file kubectl .exe in a folder of your choice. e.g.g:\Program Files\Kubernetes
Add above path in PATH environment variable bfore the docker path.
Verify installation by checking version using below command
- kubectl version--client
Steps to install minikube on Windows:
- Download minikube-windows-amd64 from
Go to https://github.com/kubernetes/minikube/releases/latest
please the downloaded file in c:\programFiles\Kubernetes folder(same location where you placed the kubectl.ext)
Rename the file to minikube.exe
Open command prompt as Administrator.
Run below command to start minikube
`minikube start--driver=hyperv`
This will take a while to complete the process.
CMD-----
Verify that minikube is running using below command
` minikube start`
CMD----------------
To open dashbord use below command . This will open the dashbord in your default web browser.
`minikube dashboard`
To stop minikube use below command.
`minikube start`