From 39654412d266d0991796e681d3838b5499a49f0a Mon Sep 17 00:00:00 2001 From: J1e9n9n1y <144667442+J1e9n9n1y@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:59:26 +0200 Subject: [PATCH] Create README.md --- README.md | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d3a531b --- /dev/null +++ b/README.md @@ -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 +``` + + + + +