Robert Schäfer e81f2344c3 Fix README
2018-11-02 13:59:37 +01:00

43 lines
974 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Usage with minikube
First of all start minikube on your machine:
```sh
minikube start
```
Build Docker images, using the Minikube Docker daemon:
```sh
eval $(minikube docker-env)
docker build -t humanconnection/backend:latest .
docker build -t humanconnection/neo4j:latest -f Dockerfile.neo4j .
```
check that the image is in Minikubes Docker registry:
```sh
minikube ssh docker images
```
Now change into directory kubernetes and create services and deployments:
```sh
cd kubernetes
kubectl create -f neo4j-deployment.yaml,neo4j-data-persistentvolumeclaim.yaml,backend-deployment.yaml,backend-service.yaml,neo4j-service.yaml
# expose the backend deployment
kubectl expose deployment backend --type=LoadBalancer
# opionally expose the neo4j deployment
kubectl expose deployment neo4j --type=LoadBalancer
```
You can see the backend in action with:
```sh
minikube service backend
```
Get an overview with your minikube dashboard:
```sh
minikube dashboard
```