Git Product home page Git Product logo

sofa-kubernetes-demo's Introduction

SOFA Kubernetes Demo

This demo is aimed to demonstrate how SOFA run in Kubernetes.

How to run this demo

  1. Install minikube in your desktop.
  2. Run minikube start to start minikube.
  3. Run kubectl apply -f zookeeper.yml to install zookeeper in minikube.
  4. Run kubectl apply -f zipkin.yml to install Zipkin in minikube.
  5. Run eval $(minikube docker-env) to change the docker env to minikube.
  6. Change directory to rpcserver than run mvn clean package to package rpcserver.
  7. Run docker build --build-arg JAR_FILE=./target/rpcserver-0.0.1-SNAPSHOT.jar . -t rpc-server to build a docker image for rpcserver
  8. Change directory to rpcclient than run mvn clean package to package rpcclient.
  9. Run docker build --build-arg JAR_FILE=./target/rpcclient-0.0.1-SNAPSHOT.jar . -t rpc-client to build a docker image for rpcclient.
  10. Change directory to the root of this project and run kubectl apply -f rpcserver.yml to run rpcserver in minikube.
  11. Run kubectl apply -f rpcclient.yml to run rpcclient in minikube.
  12. Run docker build -t my-prometheus . to build a prometheus image.
  13. Run kubectl apply -f prometheus.yml to run a prometheus in minikube.
  14. Run kubectl expose deployment rpc-client-deployment --type=NodePort && minikube service rpc-client-deployment --url to get the URL of rpcclient, than you can visit http://192.168.99.100:30304/hello (Please change the ip and port according to the result of command above.)
  15. Run kubectl expose deployment prometheus-deployment --type=NodePort && minikube service prometheus-deployment --url to get the address of prometheus, than you can visit prometheus via the address.
  16. Run kubectl expose deployment zipkin-deployment --type=NodePort && minikube service zipkin-deployment --url to get the address of zipkin, than you can visit zipkin via the address.

sofa-kubernetes-demo's People

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.