mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Add documentation
This commit is contained in:
parent
90c9e38437
commit
5a844b4bfb
38
kubernetes/README.md
Normal file
38
kubernetes/README.md
Normal file
@ -0,0 +1,38 @@
|
||||
# Usage with minikube
|
||||
|
||||
First of all start minikube on your machine:
|
||||
```sh
|
||||
minikube start
|
||||
```
|
||||
|
||||
Build your Docker image, using the Minikube Docker daemon:
|
||||
```sh
|
||||
eval $(minikube docker-env)
|
||||
docker build -t humanconnection/backend:edge .
|
||||
```
|
||||
|
||||
check that the image is in Minikube’s Docker registry:
|
||||
```sh
|
||||
minikube ssh docker images
|
||||
```
|
||||
|
||||
Now change into directory kubernetes and create services and deployments:
|
||||
```sh
|
||||
cd kubernetes
|
||||
|
||||
kubectl create -f backend-deployment.yaml neo4j-deployment.yaml neo4j-data-persistentvolumeclaim.yaml
|
||||
|
||||
# expose the backend deployment
|
||||
kubectl expose backend hello-node --type=LoadBalancer
|
||||
|
||||
# and create the services
|
||||
kubectl create -f backend-service.yaml neo4j-service.yaml
|
||||
```
|
||||
|
||||
You can see the backend in action with
|
||||
```sh
|
||||
minikube service backend
|
||||
```
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user