Golang Microservices With GRPC And Kubernetes (Minikube)
Requirements
Docker
Minikube
Kubectl
Golang
Protoc
Start Minikube
minikube start
eval$(minikube docker-env)
Deploy MongoDB
cd k8s/mongodb
kubectl apply -f .
Create One User on MongoDB
mongo -u admin -p admin --authenticationDatabase admin
use microservices
db.createUser({user: 'user', pwd: 'password', roles:[{'role': 'readWrite', 'db': 'microservices'}]});
show users;# testing authentication with new user
mongo -u user -p password --authenticationDatabase microservices
use microservices
show collections