Install the SmartHub Locally

Install the SmartHub Locally

Install the MyDecisive SmartHub, then run our solution demos to see how they provide value.

Installation Prerequisites

Before you begin, you need a GitHub account to access resources from MyDecisive repos.

You also need to install the following software.

Install the mdai-cli

The mdai-cli provides easy to use quick install helm commands to install our SmartHub via the mdai helm chart in a local learning cluster

  1. Clone the mdai-labs GitHub repo.
    This repo contains the required MyDecisive resources. It also contains the scripts and resources needed for trying out the MyDecisive solutions.

    git clone https://github.com/MyDecisive/mdai-labs.git
  2. Go to the cloned repo’s root directory and make the mdai.sh script file executable.

    cd mdai-labs
    chmod +x ./cli/mdai.sh
  3. Optionally, you can alias the shell script to mdai. We assume throughout these docs, you have done this and can use the mdai alias.

    # Set this to the path of your local clone of mdai-labs
    export MDAI_LABS_DIR="$HOME/path/to/mdai-labs"
    
    # Set mdai alias
    alias mdai='"${MDAI_LABS_DIR%/}/cli/mdai.sh"'

Installing the SmartHub

You install the MyDecisive SmartHub and other resources in a k8s cluster, which we call the MyDecisive local learning cluster.

  1. Start Docker.

  2. Run the mdai-cli install command

    mdai install -f values/overrides_0.9.0-partial.yaml
  3. Confirm that the cluster is running.
    Some pods run in the namespaces cert-manager and kube-system.

      kubectl get pods --namespace mdai

    You should see a list of pods like the following.

      NAME                                                READY   STATUS    RESTARTS   AGE
    alertmanager-kube-prometheus-stack-alertmanager-0   2/2     Running   0          21m
    kube-prometheus-stack-operator-6b9bcb8467-l69rl     1/1     Running   0          22m
    mdai-event-hub-55cc8bcb67-xf4zd                     1/1     Running   0          22m
    mdai-gateway-7cf67b66f7-f95m4                       1/1     Running   0          22m
    mdai-grafana-7b445f858c-tbnfq                       3/3     Running   0          22m
    mdai-kube-state-metrics-f6c7956f7-x44cs             1/1     Running   0          22m
    mdai-nats-0                                         3/3     Running   0          22m
    mdai-nats-1                                         3/3     Running   0          22m
    mdai-nats-2                                         3/3     Running   0          22m
    mdai-nats-box-d7fd99784-7j77f                       1/1     Running   0          22m
    mdai-operator-controller-manager-6c8d6d665d-l4tpp   1/1     Running   0          22m
    mdai-prometheus-node-exporter-zv8c2                 1/1     Running   0          22m
    mdai-valkey-primary-0                               1/1     Running   0          22m
    opentelemetry-operator-5f56b69cc7-hrqr6             1/1     Running   0          22m
    prometheus-kube-prometheus-stack-prometheus-0       2/2     Running   0          21m

Explore the Demos

After the MyDecisive SmartHub is running, install these local demos to explore MyDecisive solutions.