Skip to content
Microkubes is a ground-up scalable microservice framework
Branch: master
Clone or download
vojneski Merge pull request #30 from Microkubes/update-config-for-microservice…
…-mail

updated docker microservice-mail config to fix running
Latest commit 75f0013 May 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
keys Fix create keys(ssh-keygen) Feb 28, 2019
kubernetes
.gitignore Ignore authorization keys in helm Jan 16, 2019
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE Initial commit Mar 23, 2018
Makefile
README.md

README.md

microkubes

Microkubes is a ground-up scalable microservice framework

Getting started guide

For more information and how to set up your first microservice with Microkubes, visit our Getting started page.

Deployment guide for Kubernetes

These instructions will let you deploy the Microkubes on Kubernetes

Preparing

  1. Run a single-node Kubernetes cluster via Minikube tool
minikube --memory 8192 --cpus 2 start
  1. Create keys for authorization servers:
./keys/create.sh
  1. Create a default microkubes namespace and service account
kubectl create -f kubernetes/manifests/namespace.yaml
kubectl create -f kubernetes/manifests/serviceaccount.yaml
  1. Create a secret from keys generated in Step 2
kubectl -n microkubes create secret generic microkubes-secrets \
	--from-file=keys/default \
	--from-file=keys/default.pub \
	--from-file=keys/private.pem \
	--from-file=keys/public.pub \
	--from-file=keys/service.cert \
	--from-file=keys/service.key \
	--from-file=keys/system \
	--from-file=keys/system.pub
  1. Create a secret for the mongo objects creation
kubectl -n microkubes create secret generic mongo-init-db \
        --from-file=./kubernetes/manifests/mongo/create_microkubes_db_objects.sh
  1. Create microkubes configmap
kubectl -n microkubes create -f kubernetes/manifests/microkubes-configmap.yaml

Deploy Microkubes

Run the following commands:

cd kubernetes/manifests
kubectl create -f consul.yaml
kubectl create -f kube-consul-register.yaml
kubectl create -f kong.yaml
kubectl create -f mongo.yaml
kubectl create -f rabbitmq.yaml
kubectl create -f fakesmtp.yaml
kubectl create -f microkubes.yaml

The platform takes about 5 minutes to bring up and you can follow the progress using kubectl -n microkubes get pods -w. Once all services are running, you can start using microkubes.

Check that microkubes is up and running

The API gateway is exposed as a nodePort in kubernetes, you can get the URL and do an http GET request to check that microkubes is responding.

MICROKUBES_URL=`minikube service -n microkubes kong --url`
curl $MICROKUBES_URL/users

Contributing

For contributing to this repository or its documentation, see the Contributing guidelines.

You can’t perform that action at this time.