Visit Azul.com Support

Installing Optimizer Hub on Minikube

Table of Contents
Need help?
Schedule a consultation with an Azul performance expert.
Contact Us

Minikube can be used for testing, evaluating, and non-cloud-managed blob storage use of Optimizer Hub.

Make sure your minikube meets the 18 vCore minimum for running Optimizer Hub. Although minikube can run on multiple platforms, Optimizer Hub is only available for the x64 platform, so not on macOS with M-processor.

Blob storage is required for Optimizer Hub (since 1.10) and can be added to your Minikube setup with MinIO.

Installing Minikube

Install minikube for your platform following this installation guide.

Installing Optimizer Hub

Optimizer Hub uses Helm as the deployment manifest package manager. There is no need to manually edit any Kubernetes deployment manifests.

  1. Make sure your Helm version is v3.8.0 or newer, check it with `helm version.

  2. Add the Azul Helm repository to your Helm environment:

     
    helm repo add opthub-helm https://azulsystems.github.io/opthub-helm-charts/ helm repo update
  3. Create a namespace (i.e. my-opthub) for Optimizer Hub.

     
    minikube kubectl -- create namespace my-opthub
  4. Create MinIO storage:

    • Copy minio-dev.yaml and replace minio-dev with my-opthub or the namespace you created in the previous step.

    • Copy minio-setup-job.yaml and again replace minio-dev.

    • Install the S3 compatible storage with:

       
      minikube kubectl -- apply -f minio-dev.yaml -f minio-setup-job.yaml
  5. Create a configuration file values-minikube.yaml. An example file is available on GitHub in the Azul "opthub-helm-charts" project, to disable all resource definitions.

  6. Install using Helm, passing in the values-minikube.yaml. In case you don’t want to install the full Optimizer Hub, but only a part of the services, first check "Configuring the Active Optimizer Hub Services".

     
    helm install opthub opthub-helm/azul-opthub -n my-opthub -f values-minikube.yaml

    The command should produce output similar to this:

     
    NAME: opthub LAST DEPLOYED: Mon Jan 30 14:35:29 2023 NAMESPACE: my-opthub STATUS: deployed REVISION: 1 TEST SUITE: None
  7. Verify that all started pods are ready:

     
    minikube kubectl -- get all -n my-opthub

Uninstalling Optimizer Hub from Minikube

Optimizer Hub can be removed from minikube using helm, after which the namespace can also be deleted.

 
helm uninstall opthub -n my-opthub minikube kubectl -- delete namespace my-opthub