Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
J1e9n9n1y authored Oct 13, 2023
0 parents commit 3965441
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# To create a minikube cluster

To install minikube I followed See [these](https://minikube.sigs.k8s.io/docs/start/) instructions.
Therefore you need to:
```
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start
```
The startup will take a short time.

# To create the namespace
```
kubectl apply -f git/neo4j5-on-kubernetes/minikube/minikube-namespace.yaml
```
Check with
```
kubectl get namespaces
```

# To create the persistent volume
```
kubectl apply -f git/neo4j5-on-kubernetes/minikube/minikube-persistentVolume.yaml
```
Check with
```
kubectl get pv
```
# To create the persistent volume claims
```
kubectl apply -f git/neo4j5-on-kubernetes/minikube/minikube-persistentVolumeClaim.yaml
```
Check with
```
kubectl get pvc --namespace neo4j-namespace
```

# Deploy neo4j version 4
```
kubectl apply -f git/neo4j5-on-kubernetes/neo4j/neo4j4-deployment.yaml
```
Check with
```
kubectl --namespace neo4j-namespace get all
```
This may take a while.
To debug the startup of the database pod:
```
kubectl --namespace neo4j-namespace logs neo4j-database-0
```
or
```
kubectl --namespace neo4j-namespace describe pod neo4j-database-0
```

# Create some data in the database
Use the default login for neo4j version 4 (neo4j:neo4j).
Open up the files NodeCreation.cypher and Relationship.cypher and copy/paste the statements to the webfrontend and executed it there.




# To reset anything you did and start from scratch
```
minikube delete
```





0 comments on commit 3965441

Please sign in to comment.