Skip to content
forked from techdozo/grpc-lb

Kubernetes gRPC load balancer example

Notifications You must be signed in to change notification settings

CYMWN211/grpc-lb

 
 

Repository files navigation

Overview

gRPC load balancing code example. You can read full article at gRPC load balancing on Kubernetes (using Headless Service)

Building Docker image

To build library - run command gradlew clean build

gRPC client

To build Docker image - run command docker build . -t techdozo/grpc-lb-client:1.0.0 from grpc-client-svc To push Docker image - docker push techdozo/grpc-lb-client:1.0.0

gRPC Server

To build Docker image - run command docker build . -t techdozo/grpc-lb-server:1.0.0 from grpc-server-svc To push Docker image - docker push techdozo/grpc-lb-server:1.0.0

Kubernetes

The folder /kubernetes has YAML file for creating Kubernetes deployments and service as described in the article.

  • no-lb : has example for creating Kubernetes object which does not load balances requests
  • round-robin: example of client side load balancing

About

Kubernetes gRPC load balancer example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.5%
  • Dockerfile 5.5%