Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Intel Gaudi AI SW Tools Operator + RHOAI. #317

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
16 changes: 16 additions & 0 deletions gaudi/gaudi_install_notebooks_operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (c) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Adapted from https://docs.habana.ai/en/latest/Orchestration/HabanaAI_Operator/Deploying_HabanaAI_Operator.html#using-cli
#
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: gaudi-ai-sw-tools-operator
namespace: openshift-operators
spec:
channel: alpha
installPlanApproval: Automatic
name: gaudi-ai-sw-tools-operator
source: certified-operators
sourceNamespace: openshift-marketplace
29 changes: 28 additions & 1 deletion one_click/gaudi_provisioning_playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,25 @@
type: Available
status: 'True'
reason: MinimumReplicasAvailable
- name: Install Intel Gaudi AI SW Tools Operator
tags:
- intel-gaudi-ai-sw-tools
block:
- name: Install Intel Gaudi AI SW Tools Operator
k8s:
state: present
src: "../gaudi/gaudi_install_notebooks_operator.yaml"
wait: yes
- name: Wait until the gaudi-ai-sw-tools-operator-controller-manager Deployment is available
k8s_info:
kind: Deployment
wait: yes
name: gaudi-ai-sw-tools-operator-controller-manager
namespace: openshift-operators
wait_condition:
type: Available
status: 'True'
reason: MinimumReplicasAvailable
- name: NFD - Install NFD CRs
block:
- name: NFD - Create NFD discovery instance for Intel Gaudi
Expand Down Expand Up @@ -168,4 +187,12 @@
- "Capacity: {
'habana.ai/gaudi': {{ cluster_nodes_info.resources[0].status.capacity['habana.ai/gaudi'] }},"
- "Allocatable Resources: {
'habana.ai/gaudi': {{ cluster_nodes_info.resources[0].status.allocatable['habana.ai/gaudi'] }},"
'habana.ai/gaudi': {{ cluster_nodes_info.resources[0].status.allocatable['habana.ai/gaudi'] }},"
- name: Install GaudiAIToolsContainer CR
block:
- name: Create GaudiAIToolsContainer CR
k8s:
state: present
src: "https://raw.githubusercontent.com/intel/ai-containers/refs/heads/main/enterprise/redhat/openshift-ai/gaudi/crd-sample.yaml"
namespace: redhat-ods-applications
wait: yes
33 changes: 33 additions & 0 deletions openshift-ai/dsc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
kind: DataScienceCluster
apiVersion: datasciencecluster.opendatahub.io/v1
metadata:
labels:
app.kubernetes.io/created-by: rhods-operator
app.kubernetes.io/instance: default-dsc
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: datasciencecluster
app.kubernetes.io/part-of: rhods-operator
name: default-dsc
namespace: redhat-ods-operator
spec:
components:
codeflare:
managementState: Managed
dashboard:
managementState: Managed
datasciencepipelines:
managementState: Managed
kserve:
managementState: Removed
kueue:
managementState: Managed
modelmeshserving:
managementState: Removed
ray:
managementState: Managed
trainingoperator:
managementState: Removed
trustyai:
managementState: Removed
workbenches:
managementState: Managed
27 changes: 27 additions & 0 deletions openshift-ai/install-rhoai-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: redhat-ods-operator
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: redhat-ods-operator
namespace: redhat-ods-operator
spec:
upgradeStrategy: Default
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: rhods-operator
namespace: redhat-ods-operator
spec:
channel: stable
installPlanApproval: Automatic
name: rhods-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
startingCSV: rhods-operator.2.13.0
---