This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
Run minikube start --driver=docker works
- Single docker container acts as a kubernetes node and runs kubernetes components as processes (cluster) inside that single container.
docker exec -it minikube bash\ps aux | grep kubeto check the running processes- It sets up the Kubernetes API server and configured your local kubectl to connect to it.
- To check this:
kubectl version --clientkubectl cluster-infokubectl get nodes
Step 3: Setup yaml file for deployment of zookeeper pod and service and execute kubectl apply -f ./zookeeper-setup.yaml
kubectl get pods to check if the pod is running or not
kubectl run test-pod --image=busybox --restart=Never -- sleep 3600kubectl exec -it test-pod -- shtelnet zookeeper-service 2181kubectl delete pod test-pod
Here we will deploy a neo4j standalone instance to local kubernetes cluster using Neo4j Helm chart. The service file is a standard kubernetes manifest for defining how a set of pods is exposed withing the cluster or to external clients whereas neo4j-values configures the Neo4j instance.
- Install helm using Chocolatey in windows
choco install kubernetes-helm - Check installation with `helm version
- Add Neo4j Heml Chart Repository
helm repo add neo4j https://neo4j.github.io/helm-charts - Update the repo
helm repo update - Write the required configuration code in
neo4j-values.yamland runhelm install my-neo4j-release neo4j/neo4j -f neo4j-values.yaml - To check which config kubernetes is using
kubectl config current-context - Create service using
kubectl apply -f neo4j-service.yaml
kubectl run debug-pod --rm -it --image=busybox -- /bin/sh(pod is automatically deleted because of --rm flag)wget --spider my-neo4j-release:7474
- Create a .yaml file with service and deployment of connector pod and
kubectl apply -f kafka-neo4j-connector.yaml - Make sure the service you are exposing in kafka broker setup is same as in connector.
- Check for validation
kubectl logs -f deployment/kafka-neo4j-connector - Other validation commnds:
kubectl logs kafka-deployment-<pod> - Delete any service and deployments before rebuilding
- Forward the ports of kafka neo4j to test from the localhost.
- Run
producer.pyand check if all the nodes and relationships are created in graph database by connecting from the localhost. - Run
tester.pyto test the code