Skip to content
User microservices using Reactive Spring Boot, MongoDB, Kafka deployed on Kubernetes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
istio/dev
k8s/dev
src
.gitignore
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle
skaffold.yaml

README.md

User API

MongoDB replica set

Create network

docker network create mongo-cluster

Create mongodb container named mongo1 and replica set rs0

docker run -d --net mongo-cluster -p 27017:27017 --name mongo1 mongo mongod --replSet rs0 --port 27017

Add host /etc/hosts

127.0.0.1    mongo1

Setup replica set

docker exec -it mongo1 mongo
config={"_id":"rs0","members":[{"_id":0,"host":"mongo1:27017"}]}
rs.initiate(config)

Minikube

minikube start --cpus=4 --memory=4096

Deployment

Switch to minikube

kubectl config use-context minikube

Use skaffold to build image and deploy

skaffold run
You can’t perform that action at this time.