Code Monkey home page Code Monkey logo

minikube-k8s-order-service-example's Introduction

order-service-k8s-example

Install minikube on windows 10:

Installation guide: https://kubernetes.io/docs/tasks/tools/install-minikube/

Install VirtualBox on windows 10:
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.

Minikube installation on windows:

Manual installation:

  1. To install Minikube manually on Windows, download minikube-windows-amd64, rename it to minikube.exe, and add it to your class path.
  2. using Windows Installer, download minikube-installer.exe and execute the installer download
Install Docker Tool Box:

download docker tool box and install it. Please uncheck virtual box option while installing docker tool box.

Run Minikube:
  1. Go to command prompt and run below command. C:\Windows\System32> minikube start -p test_vm123 --vm-driver=virtualbox
  2. It should start minikube successfully!
  3. open dashboard minikube dashboard test_vm123
Commands to run order-service
  1. Role binding kubectl create clusterrolebinding admin --clusterrole=cluster-admin --serviceaccount=default:default

  2. 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

  3. build docker build -t med/order-service:1.0 .

  4. kubectl run order-service --image=med/order-service:1.0 \ --port=8080 --image-pull-policy Never

minikube-k8s-order-service-example's People

Contributors

sovanmukherjee avatar sovmukh1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.