Table of Contents
This project implements a simple gRPC server that returns "Hello, World!"
using .NET
. The application is containerized using Docker and deployed locally using Docker compose
and Kubernetes
with Minikube
. The application is also deployed on a remote Kubernetes cluster using Amazon EKS
cluster. The full documentation of the solution implementation can be accessed here
- .NET 8.0 SDK
- Docker
- Kubectl
- Minikube
- AWS CLI
- Run the following command
git clone https://github.com/ardimr/SRIN-take-home-test
- Run the following command
**NB: specify the tag accordingly
docker build -t ardimr/grpc-hello-world:$(TAG) .
- Run the program
dotnet run
Run With Docker
Make sure you have installed the docker.
-
Run docker command
-
Start Application
docker container run -d -p 8080:8080 --name grpc-hello-world ardimr/grpc-hello-world:dev
-
Shutdown Application
docker container stop grpc-hello-world
-
Run With Docker Compose
Make sure you have installed the docker-compose. Please follow this link for the guidance
-
Run docker-compose
-
Start Application
docker-compose up -d
-
Shutdown Application
docker-compose down
-
Call gRPC request using grpcurl
grpcurl -plaintext -import-path Protos/ -proto greet.proto 127.0.0.1:8888 greet.Greeter/SayHelloWorld
- Implemented a simple gRPC Server that return Hello World
- Add Dockerfile
- Push image to docker repository
- Run container using docker-compose.yml
- Deploy app in Kubernetes
- Deploy app in EKS
Rizky Ardi Maulana - [email protected]