Installation guide: https://kubernetes.io/docs/tasks/tools/install-minikube/
Install and setup kubectl Install kubectl
a) Install kubectl from below link. https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/windows/amd64/kubectl.exe and then add the binary to your class PATH.
Manual installation:
- To install Minikube manually on Windows, download minikube-windows-amd64, rename it to minikube.exe, and add it to your class path.
- using Windows Installer, download minikube-installer.exe and execute the installer download
download docker tool box and install it. Please uncheck virtual box option while installing docker tool box.
- Go to command prompt and run below command.
C:\Windows\System32> minikube start -p test_vm123 --vm-driver=virtualbox
- It should start minikube successfully!
- open dashboard
minikube dashboard test_vm123
-
Role binding
kubectl create clusterrolebinding admin --clusterrole=cluster-admin --serviceaccount=default:default
-
apply yours configuration files: a)
kubectl apply -f K8s-Configs\db-configmap.yml
b)kubectl apply -f K8s-Configs\db-secret.yml
c)kubectl apply -f K8s-Configs\order-service-deployment.yml
d)kubectl apply -f K8s-Configs\order-service-ingress.yml
-
build
docker build -t med/order-service:1.0 .
-
kubectl run order-service --image=med/order-service:1.0 \ --port=8080 --image-pull-policy Never