The Edge to Core Data Pipelines for AI/ML solution pattern provides an architecture solution for scenarios in which edge devices generate image data, which must be collected, processed, and stored at the edge before being utilized to train AI/ML models at the core data center or cloud.
This Camel Quarkus component combines MQTT and HTTP clients (such as IoT devices, cellphones, and third-party clients) with an AI/ML engine to obtain image detection results.
You will require:
-
An OpenShift Container Platform cluster running version 4.12 or above with Cluster Admin access.
You can obtain one by ordering from Red Hat Demo Platform or deploying the trial version available at Try Red Hat OpenShift
-
Docker is installed and running. The ansible playbook that configures the environment is run using Docker and Linux container images in this demonstration. You should use the most recent Docker version. See the Docker Engine installation documentation for further information.
-
Clone this GitHub repository:
git clone https://github.com/hguerrero/edge-to-cloud-data-pipelines-demo.git
-
Change to the Ansible directory.
cd edge-to-cloud-data-pipelines-demo/ansible
-
Set the cluster admin variable.
OCP_USERNAME=<your_admin_username>
-
Configure the
KUBECONFIG
file to use.export KUBECONFIG=./kube-demo
-
Login into your OpenShift cluster from the
oc
command line.oc login --username="${OCP_USERNAME}" --server=https://(...):6443 --insecure-skip-tls-verify=true
Replace the
--server
url with your own cluster API endpoint. -
Run the playbook
-
With Ansible (if you have it installed and configured):
ansible-playbook -i inventory/openshift.yaml -e="ocp_username=${OCP_USERNAME}" ./install.yaml
-
With Docker:
docker run -i -t --rm --entrypoint /usr/local/bin/ansible-playbook \ -v $PWD:/runner \ -v $PWD/kube-demo:/home/runner/.kube/config \ quay.io/agnosticd/ee-multicloud:v0.0.11 \ -e="ocp_username=${OCP_USERNAME}" \ ./install.yaml
-
With Podman:
podman run -i -t --rm --entrypoint /usr/local/bin/ansible-playbook \ -v $PWD:/runner \ -v $PWD/kube-demo:/home/runner/.kube/config \ quay.io/agnosticd/ee-multicloud:v0.0.11 \ -e="ocp_username=${OCP_USERNAME}" \ ./install.yaml
-
To check the content of the buckets we collected during the demo, you can use a simple file viewer like filestash S3 Browser.
- Expand the Advanced section.
- Use the external endpoint for S3 and the credentials from the NoobaaAcount.
- Click on Connect
You will be able to browse through the buckets and check the images sent by the edge applications.