From be253944ceab266366d949d04961396eae683d81 Mon Sep 17 00:00:00 2001 From: Corrie Sloot <35015915+corrie-sloot@users.noreply.github.com> Date: Wed, 1 Sep 2021 14:18:30 -0400 Subject: [PATCH] mPowered round7 (#736) * add minikube c2d install instructions * add minikube c2d install instructions Co-authored-by: Corrie Sloot --- content/tutorials/compute-to-data-minikube.md | 156 ++++++++++++++++++ content/tutorials/compute-to-data.md | 17 +- data/sidebars/tutorials.yml | 2 + 3 files changed, 161 insertions(+), 14 deletions(-) create mode 100644 content/tutorials/compute-to-data-minikube.md diff --git a/content/tutorials/compute-to-data-minikube.md b/content/tutorials/compute-to-data-minikube.md new file mode 100644 index 00000000..e5fc7445 --- /dev/null +++ b/content/tutorials/compute-to-data-minikube.md @@ -0,0 +1,156 @@ +--- +title: Minikube Compute-to-Data Environment +description: +--- + +## Requirements + +- functioning internet-accessable provider service +- machine capable of running compute (e.g. we used a machine with 8 CPUs, 16 GB Ram, 100GB SSD and fast internet connection) +- Ubuntu 20.04 + +## Install Docker and Git + +```bash +sudo apt update +sudo apt install git docker.io +sudo usermod -aG docker $USER && newgrp docker +``` + +## Install Minikube + +```bash +wget -q --show-progress https://github.com/kubernetes/minikube/releases/download/v1.22.0/minikube_1.22.0-0_amd64.deb +sudo dpkg -i minikube_1.22.0-0_amd64.deb +``` + +## Download and Configure Operator Service + +```bash +git clone https://github.com/oceanprotocol/operator-service.git +``` + +Edit `operator-service/kubernetes/postgres-configmap.yaml`. Change `POSTGRES_PASSWORD` to nice long random password. + +Edit `operator-service/kubernetes/deployment.yaml`. Optionally change: + +- `ALGO_POD_TIMEOUT` +- add `requests_cpu` +- add `requests_memory` +- add `limits_cpu` +- add `limits_memory` + +```yaml +... + spec: + containers: + - env: + - name: requests_cpu + value: "4" + - name: requests_memory + value: "8Gi" + - name: limits_cpu + value: "8" + - name: limits_memory + value: "15Gi" + - name: ALGO_POD_TIMEOUT + value: "3600" +... +``` + +## Download and Configure Operator Engine + +```bash +git clone https://github.com/oceanprotocol/operator-engine.git +``` + +Check the [README](https://github.com/oceanprotocol/operator-engine#customize-your-operator-engine-deployment) section of operator engine to customize your deployment. + +At a minimum you should add your IPFS URLs or AWS settings, and add (or remove) notification URLs. + +## Install kubectl + +```bash +curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" +echo "$(