Skip to content
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ocp4_workload_openshift_ai_deploy_dsc: true
# Data Science Cluster Configuration
ocp4_workload_openshift_ai_codeflare: Removed
ocp4_workload_openshift_ai_dashboard: Managed
ocp4_workload_openshift_ai_dashboard_replicas: 2
ocp4_workload_openshift_ai_datasciencepipelines: Managed
ocp4_workload_openshift_ai_kserve: Removed
ocp4_workload_openshift_ai_kueue: Removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,37 @@
msg: r_ds_cluster
verbosity: 2

- name: Configure rhods-dashboard deployment replicas
when:
- ocp4_workload_openshift_ai_deploy_dsc | bool
- ocp4_workload_openshift_ai_dashboard == "Managed"
- ocp4_workload_openshift_ai_dashboard_replicas is defined
block:
- name: Wait for rhods-dashboard deployment to be created
kubernetes.core.k8s_info:
api_version: apps/v1
kind: Deployment
name: rhods-dashboard
namespace: redhat-ods-applications
register: r_dashboard_deployment
until:
- r_dashboard_deployment.resources is defined
- r_dashboard_deployment.resources | length > 0
retries: 10
delay: 30

- name: Patch rhods-dashboard deployment replicas
kubernetes.core.k8s:
state: present
definition:
apiVersion: apps/v1
kind: Deployment
metadata:
name: rhods-dashboard
namespace: redhat-ods-applications
spec:
replicas: {{ ocp4_workload_openshift_ai_dashboard_replicas | int }}

- name: Get the OpenShift AI dashboard route
kubernetes.core.k8s_info:
api_version: route.openshift.io/v1
Expand All @@ -41,10 +72,10 @@
namespace: redhat-ods-applications
register: r_odh_dashboard_route
until:
- r_odh_dashboard_route.resources is defined
- r_odh_dashboard_route.resources | length > 0
- r_odh_dashboard_route.resources.0.status.ingress.0.host is defined
- r_odh_dashboard_route.resources.0.status.ingress.0.host | length > 0
- r_odh_dashboard_route.resources is defined
- r_odh_dashboard_route.resources | length > 0
- r_odh_dashboard_route.resources.0.status.ingress.0.host is defined
- r_odh_dashboard_route.resources.0.status.ingress.0.host | length > 0
retries: 80
delay: 30

Expand Down
Loading