Under Construction

This documentation is a work in progress. Visit regularly to see the improvements we're making.

Install MDAI

Step 2.1 - Complete Step 2.2 - Active Step 2.3 Step 2.4 Step 2.5 Step 2.6

MDAI runs in a Kubernetes cluster. You’ll use Helm charts to bring up the pods in the cluster.

Bring Up the MDAI Cluster

Make sure Docker is running.

  1. Use kind to create a new cluster.

    kind create cluster --name mdai
  2. Use kubectl to install cert-manager.

    kubectl apply -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml
    kubectl wait --for=condition=Established crd/certificates.cert-manager.io --timeout=60s
    kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=cert-manager -n cert-manager --timeout=60s
    kubectl wait --for=condition=Available=True deploy -l app.kubernetes.io/instance=cert-manager -n cert-manager --timeout=60s
    Note

    Wait a few moments for cert-manager to finish installing.

  3. Use helm to install MDAI.

    helm upgrade --install \
      mdai mdai-hub \
      --repo https://charts.mydecisive.ai \
      --version v0.8.0-rc3 \
      --namespace mdai \
      --create-namespace \
      --cleanup-on-fail
  4. Verify that the cluster’s pods are running.

    kubectl get pods -n mdai

If the cluster is running, you’ll see output similar to the following.

NAME                                                READY   STATUS    RESTARTS   AGE
alertmanager-kube-prometheus-stack-alertmanager-0   2/2     Running   0          50s
event-handler-webservice-57d9d88c5f-r6kgf           1/1     Running   0          59s
kube-prometheus-stack-operator-6cfdc788d4-pgrx2     1/1     Running   0          59s
mdai-grafana-68d9c9474c-gh6ff                       3/3     Running   0          59s
mdai-kube-state-metrics-6cd9fd8458-cn9bq            1/1     Running   0          59s
mdai-operator-controller-manager-66f9696ff7-7s9j6   1/1     Running   0          59s
mdai-prometheus-node-exporter-6wvll                 1/1     Running   0          59s
mdai-valkey-primary-0                               1/1     Running   0          59s
opentelemetry-operator-6d8ddbdc4d-pcwrb             1/1     Running   0          59s
prometheus-kube-prometheus-stack-prometheus-0       2/2     Running   0          50s

Set Up the MDAI Hub

  1. From the MDAI Example Config repo, copy the mdaihub_config.yaml file into your working directory.

  2. Apply the configuration to the hub resource.

    kubectl apply -f mdaihub_config.yaml
  3. Verify the hub is applied by running

    kubectl get customresourcedefinitions mdaihubs.hub.mydecisive.ai

Your output should be similar to the following.

NAME                         CREATED AT
mdaihubs.hub.mydecisive.ai   2025-03-24T20:02:19Z

Success

Now that MDAI is running, we can go on to generate log data.