This repository has been archived.
VM Placement Service API for optimizing virtual machine placement across infrastructure.
- Go 1.23+
- Podman
- Cluster with KubeVirt - Find more information here
-
** Login to openshift/k8s with CNV and create namespaces **
oc login ...
-
Run the application:
cat > deploy/podman/.env << 'EOF' # Database Configuration DATABASE_NAME=placement DATABASE_USER=admin DATABASE_PASSWORD=adminpass DATABASE_PORT=5432 DATABASE_HOST=placement-db DATABASE_MASTER_USER=admin DATABASE_MASTER_PASSWORD=adminpass # Kubernetes configuration file path (used by k8s-service-provider) # Default: ${HOME}/.kube/config KUBECONFIG=${HOME}/.kube/config EOF make compose-up
-
Create app:
curl -v -X POST -H "Content-type: application/json" --data '{"name": "myvm", "service": "webserver", "tier": 1}' http://localhost:8080/applications
-
Check VMs:
oc get vm -n us-east-1 oc get vm -n us-east-2