mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Usage with minikube
First of all start minikube on your machine:
minikube start
You can always get an overview and see what's going on with your minikube:
minikube dashboard
Build Docker images, using the Minikube Docker daemon:
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 Minikube’s Docker registry:
minikube ssh docker images
Now change into directory kubernetes and create services and deployments:
cd kubernetes
kubectl create -f neo4j-deployment.yaml,neo4j-data-persistentvolumeclaim.yaml,backend-deployment.yaml,neo4j-service.json,backend-service.json
You can see the backend in action with:
minikube service backend