GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hmoragrega/grpc: gRPC demo on Kubernetes cluster

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
client
client
 
 
kubernetes
kubernetes
 
 
ops
ops
 
 
protobuf/greeter
protobuf/greeter
 
 
publisher
publisher
 
 
server
server
 
 
.gitignore
.gitignore
 
 
Gopkg.lock
Gopkg.lock
 
 
Gopkg.toml
Gopkg.toml
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

Microservices Orchestration Demo

  • Service discovery with either consul or kubernetes services
  • Load balancing between nodes
  • Pub/Sub Events with Kafka
  • Circuit breaker [TODO]

Build

Build docker images

make build

Run

Option 1: Docker + Consul

You can run the demo locally in docker using consul as service discovery (go-micro default registry)

make up

To check the output

make logs

To stop it type

make down

Option 2: Kubernetes in minikube

You can use a local kubernetes cluster to deploy the demo Install minikube an activate set up the terminal to use the minikube docker

eval $(minikube docker-env)

Rebuild the images so they are available inside the minikube docker

make build

Deploy Kafka, it will take some seconds

make deploy-kafka

Once kafka is ready then deploy the demo

make deploy

To remove all services type:

make destroy
make destroy-kafka

Appendix: Installation fo Protocol Buffers (Mac OSX)

Install the proto compiler

With brew

NOTE: The next steps will install the compiler from the source, alternatively you can use brew

brew install protobuf

From source

Prerequisites

brew install autoconf && brew install automake
  1. Download the appropriate release here: https://github.com/google/protobuf/releases

  2. Configure and build the compiler

./autogen.sh
./configure
make
make check
  1. Install it
sudo make install
which protoc
protoc --version

Install the Go plugin for the proto compiler

go get -u github.com/golang/protobuf/protoc-gen-go

Make sure $GOPATH/bin is available on the $PATH

Compile the proto spec to Go classes

protoc --go_out=. protobuf/greeter.proto

About

gRPC demo on Kubernetes cluster

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.