Skip to content

Commit

Permalink
maestro server deployment script + docs
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle authored and mjlshen committed May 16, 2024
1 parent bf5a7ad commit 893f39e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dev-infrastructure/docs/development-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,17 @@ This will delete:
```bash
AKSCONFIG=svc-cluster make clean
```

## Maestro Infrastructure

Maestro infrastructure is provisioned as part of the svc-cluster. To deploy the Maestro infrastructure and deploy the Maestro server onto the service cluster set the `deployMaestroInfra` toggle to `true` and run

```sh
cd dev-infrastructure
AKSCONFIG=svc-cluster make svc-cluster
AKSCONFIG=svc-cluster make aks.kubeconfig
KUBECONFIG=svc-cluster.kubeconfig scripts/maestro-server.sh

kubectl get svc -n maestro
curl http://${LB_IP}:$port
```
15 changes: 15 additions & 0 deletions dev-infrastructure/scripts/maestro-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
oc process --local -f https://raw.githubusercontent.com/openshift-online/maestro/main/templates/db-template.yml \
DATABASE_SERVICE_NAME=maestro-db \
DATABASE_NAME=maestro \
DATABASE_USER=maestro \
DATABASE_PASSWORD=maestro | oc apply -f - -n maestro
oc process --local -f https://raw.githubusercontent.com/openshift-online/maestro/main/templates/service-template-aro-hcp.yml \
IMAGE_REGISTRY=quay.io \
IMAGE_REPOSITORY=redhat-user-workloads/maestro-rhtap-tenant/maestro/maestro \
IMAGE_TAG=a35d64986772a055dae5f19657e4eec237380b07 \
DB_SSLMODE=disable \
ENABLE_HTTPS=false \
DB_SECRET_NAME=maestro-db \
ENABLE_OCM_MOCK=true \
ENABLE_JWT=false \
MAESTRO_SERVER_EXPOSURE=LoadBalancer | oc apply -f - -n maestro

0 comments on commit 893f39e

Please sign in to comment.