This repository provides solution to deploy document micro services onto Kubernetes Cluster.
- Install local Kubernetes playground either minikube or enable Kubernetes in Docker Desktop
- Install kubectl
- Install helm package manager
- Install Tiller on Kuberntes Cluster
First of all document micro services need to be built as docker images. Docker image build step is integrated into maven lifecycle with dockerfile-maven-plugin.
Example to build docker image for metadata-manager micro service:
mvn clean package dockerfile:build -f metadata-manager/pom.xml
After successful build the following command should show newly created docker images:
docker image ls
Please notice that deployment example described here operates only with local distributions, nothing is pushed to remote docker repositories.
The following command deploys and starts all services defined under document-services umbrella helm chart.
helm install --name document-services document-services/
After a while services should be up and running.
To verify state of pods:
kubectl get pods
To verify state of services:
kubectl get services