Deploy Rok Disk Manager

This section will guide you through deploying Rok Disk Manager (RDM).

Choose one of the following options to deploy Rok:

What You’ll Need

Option 1: Deploy Rok Disk Manager Automatically (preferred)

Choose one of the following options, based on your cloud provider.

Deploy Rok Disk Manager by following the on-screen instructions on the rok-deploy user interface.

If rok-deploy is not already running, start it with:

root@rok-tools:~# rok-deploy --run-from rdm
../../_images/rdm.png

Proceed to the Summary section.

Rok does not currently support automatic deployment on Azure Cloud. Please follow the instructions in the Option 2: Deploy Rok Disk Manager Manually section to deploy Rok manually.
Rok does not currently support automatic deployment on Google Cloud. Please follow the instructions in the Option 2: Deploy Rok Disk Manager Manually section to deploy Rok manually.

Option 2: Deploy Rok Disk Manager Manually

If you want to deploy Rok Disk Manager manually, follow the instructions below.

Procedure

  1. Go to your GitOps repository, inside your rok-tools management environment:

    root@rok-tools:~# cd ~/ops/deployments
  2. Create the Rok namespaces, rok and rok-system, that will host Rok and its system components:

    root@rok-tools:~/ops/deployments# rok-deploy --apply rok/rok-namespaces/overlays/deploy
  3. Edit the kustomization manifest. Choose one of the following options, based on your cloud provider:

    Edit rok/rok-disk-manager/overlays/deploy/kustomization.yaml to use the eks overlay as base:

    bases: - ../eks # <-- Edit this line to point to the eks overlay

    Edit rok/rok-disk-manager/overlays/deploy/kustomization.yaml to use the aks overlay as base:

    bases: - ../aks # <-- Edit this line to point to the aks overlay

    Edit rok/rok-disk-manager/overlays/deploy/kustomization.yaml to use the gke overlay as base:

    bases: - ../gke # <-- Edit this line to point to the gke overlay
  4. Commit your changes:

    root@rok-tools:~/ops/deployments# git commit -am "Deploy Rok Disk Manager"
  5. Deploy RDM:

    root@rok-tools:~/ops/deployments# rok-deploy \ > --apply rok/rok-disk-manager/overlays/deploy

Verify

  1. From inside your management environment, verify that the Rok Disk Manager Pods are up-and-running. Check the Pod status and verify that field STATUS is Running and field READY is 1/1 for all Pods:

    root@rok-tools:~# kubectl -n rok-system get pods NAME READY STATUS RESTARTS AGE rok-disk-manager-tmwqz 1/1 Running 0 1m rok-disk-manager-c4w7n 1/1 Running 0 1m

    Note

    The number of Pods you are seeing in the above output should be equal with the number of nodes you have in your cluster.

Summary

You have successfully deployed Rok Disk Manager.

What’s Next

The next step is to deploy Rok.