{"id":25943321,"url":"https://github.com/rohancyberops/grpc-k8s-go-project","last_synced_at":"2025-07-05T20:35:50.756Z","repository":{"id":277712713,"uuid":"933277365","full_name":"RohanCyberOps/grpc-k8s-go-project","owner":"RohanCyberOps","description":"This project demonstrates a distributed system using gRPC, Kubernetes, and Go. It includes a simple gRPC service, a client, and deployment to Kubernetes for scalability.","archived":false,"fork":false,"pushed_at":"2025-02-15T15:27:07.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T22:46:04.589Z","etag":null,"topics":["awasome","distributed","docker","go","golang","grpc","kubrnetes","protocolbuf"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RohanCyberOps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-15T15:23:19.000Z","updated_at":"2025-02-19T14:14:07.000Z","dependencies_parsed_at":"2025-02-15T16:28:00.756Z","dependency_job_id":"2c15759b-588f-4696-a993-6cb07e4bd954","html_url":"https://github.com/RohanCyberOps/grpc-k8s-go-project","commit_stats":null,"previous_names":["rohancyberops/grpc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RohanCyberOps/grpc-k8s-go-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2Fgrpc-k8s-go-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2Fgrpc-k8s-go-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2Fgrpc-k8s-go-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2Fgrpc-k8s-go-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RohanCyberOps","download_url":"https://codeload.github.com/RohanCyberOps/grpc-k8s-go-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2Fgrpc-k8s-go-project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263802454,"owners_count":23513840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awasome","distributed","docker","go","golang","grpc","kubrnetes","protocolbuf"],"created_at":"2025-03-04T07:15:51.562Z","updated_at":"2025-07-05T20:35:50.703Z","avatar_url":"https://github.com/RohanCyberOps.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gRPC + Kubernetes + Go Distributed System\n\n## Overview\nThis project demonstrates a distributed system using **gRPC**, **Kubernetes**, and **Go**. It includes a simple gRPC service, a client, and deployment to Kubernetes for scalability.\n\n## Technologies Used\n- **Go (Golang)** - Statically typed, compiled programming language.\n- **gRPC** - High-performance Remote Procedure Call (RPC) framework.\n- **Protocol Buffers (Protobuf)** - Efficient data serialization format.\n- **Docker** - Containerization for microservices.\n- **Kubernetes** - Container orchestration platform.\n\n## Prerequisites\nEnsure you have the following installed:\n- **Go** (≥1.20) - [Download Go](https://go.dev/dl/)\n- **Docker** - [Download Docker](https://www.docker.com/)\n- **Kubernetes** (Minikube, Kind, or a cloud provider)\n- **protoc** (Protocol Buffers compiler) - [Install protoc](https://grpc.io/docs/protoc-installation/)\n\n## Setup \u0026 Installation\n\n### 1. Clone the Repository\n```bash\ngit clone https://github.com/RohanCyberOps/grpc-k8s-go-project.git\ncd grpc-k8s-go-project\n```\n\n### 2. Generate gRPC Code\n```bash\nprotoc --go_out=. --go-grpc_out=. proto/helloworld.proto\n```\n\n### 3. Run the gRPC Server Locally\n```bash\ngo run server/server.go\n```\n\n### 4. Run the gRPC Client\n```bash\ngo run client/client.go\n```\n\n## Running with Docker\n\n### 1. Build Docker Image\n```bash\ndocker build -t greeter-server:latest -f Dockerfile .\n```\n\n### 2. Run Container\n```bash\ndocker run -p 50051:50051 greeter-server\n```\n\n## Deploy to Kubernetes\n\n### 1. Start Kubernetes Cluster\n```bash\nminikube start\n```\n\n### 2. Deploy gRPC Server to Kubernetes\n```bash\nkubectl apply -f k8s/deployment.yaml\nkubectl apply -f k8s/service.yaml\n```\n\n### 3. Get Service IP\n```bash\nkubectl get svc greeter-service\n```\n\n### 4. Update Client to Use Kubernetes Service IP\nModify `client.go` to use `EXTERNAL-IP:50051`, then run:\n```bash\ngo run client/client.go\n```\n\n## Scaling \u0026 Monitoring\n\n### 1. Scale Pods\n```bash\nkubectl scale deployment greeter-server --replicas=5\n```\n\n### 2. Monitor Logs\n```bash\nkubectl logs -l app=greeter-server --tail=50 -f\n```\n\n## License\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Fgrpc-k8s-go-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohancyberops%2Fgrpc-k8s-go-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Fgrpc-k8s-go-project/lists"}