Mission Control is a service running on the DAV network, and serving as a marketplace connecting DAV users, vehicles, and services.
First thing you need to do is create and connect to a Kubernetes (K8S) cluster. This can be one of various options:
- A local K8S deployment (e.g. via minikube)
- A GCP GKE Cluster.
- A K8S Cluster deployed on AWS EC2 (e.g. using kops)
- An AWS EKS cluster.
- You need to have a local install of kubectl configured to operate your cluster
Open a terminal in the project folder and run:
cd k8s
make deploy-global** This step should be done once per DAVNN cluster **
At this stage DAVNN pods require a ZK cluster to run.
Open a terminal in the project folder and run:
cd k8sIf deploying a local(dev) version - run:
make deploy-zookeeper-devIf deploying a cloud(prod) version - run:
make deploy-zookeeper-prodWait until the ZK cluster is active.
Open a terminal in the project folder and run:
cd k8sIf deploying a local(dev) version - run:
make deploy-davnn-devIf deploying a cloud(prod) version - run:
make deploy-davnn-prodWait until your DAVNN pod is active.
** This step should be done once per DAVNN cluster **
Find your pod id:
kubectl get pods --namespace=davnnYour should see something like this:
NAME READY STATUS RESTARTS AGE
davnn-7bf6f57c4b-6zxg7 4/4 Running 0 25m
zookeeper-0 1/1 Running 0 30m
zookeeper-1 1/1 Running 0 29m
zookeeper-2 1/1 Running 0 29mThe davnn-7bf6f57c4b-6zxg7 is your DAVNN pod - copy this id for the next step.
Connect to the DAVNN pod api container via SSH.
E.g.:
kubectl exec -it --namespace=davnn davnn-<POD_ID> -c api bashWhen connected run the deploy-schema command:
make deploy-schemaSometimes it's easier to debug local scripts using a local proxy. To run a local proxy that connects to your deployed pod run the following:
make proxyAs an organization committed to extreme transparency, collaboration, and open-sourcing all of our work, we welcome participation from anyone willing to devote some time and energy to help shape DAV - whether you are a first time contributor, a veteran open-sourcerer, or just looking to suggest some ideas.