@@ -433,6 +433,7 @@ kueue-setup:
433
433
all-in-one :
434
434
@echo -e " \n ==> Installing Everything needed for distributed AI platform on OpenShift cluster \n"
435
435
-make install-nfd-operator
436
+ -make install-service-mesh-operator
436
437
-make install-ai-platform-operator
437
438
-make install-nvidia-operator
438
439
@@ -441,6 +442,7 @@ delete-all-in-one:
441
442
@echo -e " \n ==> Removing Everything needed for distributed AI platform on OpenShift cluster \n"
442
443
-make delete-nfd-operator
443
444
-make delete-ai-platform-operator
445
+ -make delete-service-mesh-operator
444
446
-make delete-nvidia-operator
445
447
446
448
# #@ general
@@ -463,6 +465,10 @@ endif
463
465
.PHONY : delete-rhoai-operator
464
466
delete-rhoai-operator : # # Delete RHOAI Operator
465
467
@echo -e " \n ==> Deleting OpenShift AI Operator \n"
468
+ kubectl delete datasciencecluster/default-dsc
469
+ kubectl wait --for=delete datasciencecluster/default-dsc --timeout=180s
470
+ kubectl delete dsci/default-dsci
471
+ kubectl wait --for=delete dsci/default-dsci --timeout=180s
466
472
-kubectl delete subscription rhods-operator -n redhat-ods-operator
467
473
-export CLUSTER_SERVICE_VERSION=` kubectl get clusterserviceversion -n redhat-ods-operator -l operators.coreos.com/rhods-operator.redhat-ods-operator -o custom-columns=:metadata.name` ; \
468
474
kubectl delete clusterserviceversion $$ CLUSTER_SERVICE_VERSION -n redhat-ods-operator
@@ -475,13 +481,19 @@ install-rhoai-operator: ## Install RHOAI Operator
475
481
kubectl create -f contrib/configuration/rhoai/rhoai-operator-subscription.yaml
476
482
@echo Waiting for rhoai-operator Subscription to be ready
477
483
kubectl wait -n redhat-ods-operator subscription/rhods-operator --for=jsonpath=' {.status.state}' =AtLatestKnown --timeout=180s
484
+ -export RHOAI_POD_NAME=` kubectl get -n redhat-ods-operator pod -o custom-columns=:metadata.name | grep rhods-operator` ; \
485
+ kubectl wait --for=' jsonpath={.status.conditions[?(@.type=="Ready")].status}=True' pod/$$ RHOAI_POD_NAME -n redhat-ods-operator
478
486
@echo -e " \n==> Creating default Data Science Cluster \n"
479
487
kubectl apply -f contrib/configuration/rhoai/default-dsci.yaml --server-side
480
488
kubectl apply -f contrib/configuration/rhoai/default-dsc.yaml --server-side
481
489
482
490
.PHONY : delete-opendatahub-operator
483
491
delete-opendatahub-operator : # # Delete OpenDataHub operator
484
492
@echo -e " \n==> Deleting OpenDataHub Operator \n"
493
+ kubectl delete datasciencecluster/default-dsc
494
+ kubectl wait --for=delete datasciencecluster/default-dsc --timeout=180s
495
+ kubectl delete dsci/default-dsci
496
+ kubectl wait --for=delete dsci/default-dsci --timeout=180s
485
497
-kubectl delete subscription opendatahub-operator -n openshift-operators
486
498
-export CLUSTER_SERVICE_VERSION=` kubectl get clusterserviceversion -n openshift-operators -l operators.coreos.com/opendatahub-operator.openshift-operators -o custom-columns=:metadata.name` ; \
487
499
kubectl delete clusterserviceversion $$ CLUSTER_SERVICE_VERSION -n openshift-operators
@@ -494,11 +506,26 @@ install-opendatahub-operator: ## Install OpenDataHub operator
494
506
kubectl create -f contrib/configuration/odh/opendatahub-operator-subscription.yaml
495
507
@echo Waiting for opendatahub-operator Subscription to be ready
496
508
kubectl wait -n openshift-operators subscription/opendatahub-operator --for=jsonpath=' {.status.state}' =AtLatestKnown --timeout=180s
497
- sleep 2
498
509
kubectl wait --for=condition=available deployment/opendatahub-operator-controller-manager -n openshift-operators --timeout=180s
510
+ -export ODH_POD_NAME=` kubectl get -n openshift-operators pod -o custom-columns=:metadata.name | grep opendatahub-operator-controller-manager` ; \
511
+ kubectl wait --for=' jsonpath={.status.conditions[?(@.type=="Ready")].status}=True' pod/$$ ODH_POD_NAME -n openshift-operators
499
512
kubectl apply -f contrib/configuration/odh/default-dsci.yaml --server-side
500
513
kubectl apply -f contrib/configuration/odh/default-dsc.yaml --server-side
501
514
515
+ .PHONY : delete-service-mesh-operator
516
+ delete-service-mesh-operator : # # Delete Service Mesh Operator
517
+ @echo -e " \n==> Deleting Service Mesh Operator \n"
518
+ kubectl delete subscription servicemeshoperator -n openshift-operators
519
+ -export CLUSTER_SERVICE_VERSION=` kubectl get clusterserviceversion -n openshift-operators -l operators.coreos.com/servicemeshoperator.openshift-operators -o custom-columns=:metadata.name` ; \
520
+ kubectl delete clusterserviceversion $$ CLUSTER_SERVICE_VERSION -n openshift-operators
521
+
522
+ .PHONY : install-service-mesh-operator
523
+ install-service-mesh-operator : # # Install Service Mesh Operator
524
+ @echo -e " \n==> Installing OpenShift Service Mesh Operator"
525
+ kubectl create -f contrib/configuration/service-mesh-operator-subscription.yaml
526
+ kubectl wait -n openshift-operators subscription/servicemeshoperator --for=jsonpath=' {.status.state}' =AtLatestKnown --timeout=180s
527
+ kubectl wait --for=condition=available deployment/istio-operator -n openshift-operators --timeout=180s
528
+
502
529
# #@ GPU Support
503
530
.PHONY : install-nfd-operator
504
531
install-nfd-operator : # # Install NFD operator ( Node Feature Discovery )
0 commit comments