Installing Optimizer Hub on Minikube
Minikube can be used for testing and evaluating Optimizer Hub.
You should run Optimizer Hub on minikube only for evaluation purposes. 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 M1/2.
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.
-
Make sure your Helm version is
v3.8.0
or newer. -
Add the Azul Helm repository to your Helm environment:
helm repo add opthub-helm https://azulsystems.github.io/opthub-helm-charts/ helm repo update -
Create a namespace (i.e.
my-opthub
) for Optimizer Hub.minikube kubectl -- create namespace my-opthub -
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.
As the supplied values file for minikube resets pod resources to null, we can simply add only the persistent volume section:
db: resources: persistentDataVolume: enabled: trueYou can also set the volume size if the default 200Gi is too big for local testing:
db: resources: persistentDataVolume: enabled: true size: "50Gi" -
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.yamlThe 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 -
Verify that all started pods are ready:
minikube kubectl -- get all -n my-opthub