Skip to content

Commit

Permalink
docs: Update gpu-provisioner installation step (#374)
Browse files Browse the repository at this point in the history
**Reason for Change**:
Update the installation doc with the new `gpu-provisoner` helm chart
install.

**Requirements**

- [ ] added unit tests and e2e tests (if applicable).

**Issue Fixed**:
<!-- If this PR fixes GitHub issue 4321, add "Fixes #4321" to the next
line. -->

**Notes for Reviewers**:

---------

Signed-off-by: Heba <[email protected]>
  • Loading branch information
helayoty authored May 8, 2024
1 parent 675a245 commit cc8e02d
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,37 +76,13 @@ az role assignment create --assignee $IDENTITY_PRINCIPAL_ID --scope /subscriptio
Install the Node provisioner controller.
```bash
# get additional values for helm chart install
export NODE_RESOURCE_GROUP=$(az aks show -n $MY_CLUSTER -g $RESOURCE_GROUP --query nodeResourceGroup -o tsv)
export LOCATION=$(az aks show -n $MY_CLUSTER -g $RESOURCE_GROUP --query location -o tsv)
export TENANT_ID=$(az account show --query tenantId -o tsv)

# create a local values override file
cat << EOF > values.override.yaml
controller:
env:
- name: ARM_SUBSCRIPTION_ID
value: $SUBSCRIPTION
- name: LOCATION
value: $LOCATION
- name: AZURE_CLUSTER_NAME
value: $MY_CLUSTER
- name: AZURE_NODE_RESOURCE_GROUP
value: $NODE_RESOURCE_GROUP
- name: ARM_RESOURCE_GROUP
value: $RESOURCE_GROUP
- name: LEADER_ELECT
value: "false"
workloadIdentity:
clientId: $IDENTITY_CLIENT_ID
tenantId: $TENANT_ID
settings:
azure:
clusterName: $MY_CLUSTER
EOF

# install gpu-provisioner using values override file
helm install gpu-provisioner ./charts/kaito/gpu-provisioner \
--namespace gpu-provisioner --create-namespace -f values.override.yaml
export GPU_PROVISIONER_VERSION=0.2.0

curl -sO https://raw.githubusercontent.com/Azure/gpu-provisioner/main/hack/deploy/configure-helm-values.sh
chmod +x ./configure-helm-values.sh && ./configure-helm-values.sh $MY_CLUSTER $RESOURCE_GROUP $IDENTITY_NAME

helm install gpu-provisioner --values gpu-provisioner-values.yaml --set settings.azure.clusterName=$MY_CLUSTER --wait \
https://github.com/Azure/gpu-provisioner/raw/gh-pages/charts/gpu-provisioner-$GPU_PROVISIONER_VERSION.tgz
```

#### Create the federated credential
Expand Down

0 comments on commit cc8e02d

Please sign in to comment.