@@ -12,7 +12,7 @@ ms.custom: innovation-engine, linux-related-content
12
12
Run terraform to provision all the Azure resources required to setup your new OpenAI website.
13
13
``` bash
14
14
# Terraform parses TF_VAR_* as vars (Ex: TF_VAR_name -> name)
15
- export TF_VAR_location=" westus3 "
15
+ export TF_VAR_location=$REGION
16
16
export TF_VAR_kubernetes_version=" 1.30.9"
17
17
export TF_VAR_model_name=" gpt-4o-mini"
18
18
export TF_VAR_model_version=" 2024-07-18"
@@ -27,7 +27,8 @@ terraform -chdir=terraform apply -auto-approve
27
27
In order to use the kubectl to run commands on the newly created cluster, you must first login.
28
28
``` bash
29
29
RESOURCE_GROUP=$( terraform -chdir=terraform output -raw resource_group_name)
30
- az aks get-credentials --admin --name AksCluster --resource-group $RESOURCE_GROUP --subscription $SUBSCRIPTION_ID
30
+ AKS_CLUSTER_NAME=$( terraform -chdir=terraform output -raw aks_cluster_name)
31
+ az aks get-credentials --admin --name $AKS_CLUSTER_NAME --resource-group $RESOURCE_GROUP --subscription $SUBSCRIPTION_ID
31
32
```
32
33
33
34
# Install Helm Charts
@@ -55,8 +56,9 @@ helm upgrade --install cert-manager jetstack/cert-manager \
55
56
Apply/Deploy Manifest File
56
57
``` bash
57
58
export IMAGE=" aamini8/magic8ball:latest"
58
- # Uncomment below to manually build docker image yourself instead of using pre-built image.
59
+ # ( Uncomment below to manually build docker image yourself instead of using pre-built image.)
59
60
# docker build -t <YOUR IMAGE NAME> ./magic8ball --push
61
+
60
62
export HOSTNAME=$( terraform -chdir=terraform output -raw hostname)
61
63
export WORKLOAD_IDENTITY_CLIENT_ID=$( terraform -chdir=terraform output -raw workload_identity_client_id)
62
64
export AZURE_OPENAI_DEPLOYMENT=$( terraform -chdir=terraform output -raw openai_deployment)
@@ -66,6 +68,6 @@ envsubst < quickstart-app.yml | kubectl apply -f -
66
68
67
69
## Wait for host to be ready
68
70
``` bash
69
- kubectl wait --for=condition=Ready certificate/tls-secret
71
+ kubectl wait --for=condition=Ready --timeout=5m certificate/tls-secret
70
72
echo " Visit: https://$HOSTNAME "
71
73
```
0 commit comments