You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ai-service/init.sh
+29-25Lines changed: 29 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -2,40 +2,44 @@
2
2
3
3
# Function to prompt the user for input with a default value
4
4
prompt() {
5
-
local var_name=$1
6
-
local prompt_text=$2
7
-
local default_value=$3
5
+
local prompt_text=$1
6
+
local default_value=$2
8
7
read -p "$prompt_text ($default_value): " input
9
8
echo"${input:-$default_value}"
10
9
}
11
10
12
11
# File to update
13
-
values_file="values.yaml"
12
+
BASE_PATH=$(pwd)
13
+
ai_values_file=$BASE_PATH/values.yaml
14
14
15
15
# Prompt the user for each value
16
-
ai_service_andromeda_host=$(prompt "AI_SERVICE_ANDROMEDA_HOST""Enter the AI Service Andromeda Host URL""http://andromeda-service.privado.svc.cluster.local:6001")
17
-
chroma_host=$(prompt "CHROMA_HOST""Enter the Chroma Host (without 'http://' prefix)""ai-service-chroma-chromadb.privado.svc.cluster.local")
18
-
use_ecr=$(prompt "Use ECR to pull AiService container image? (true/false)""false")
19
-
secret_access_key_id=$(prompt "secretAccessKeyId""Enter the AWS Secret Access Key ID (required if useECR:true)""None")
20
-
secret_access_key=$(prompt "secretAccessKey""Enter the AWS Secret Access Key (required if useECR:true)""None")
21
-
node_instance_type=$(prompt "node.kubernetes.io/instance-type""Enter the node instance type""g5.xlarge")
22
-
models_storage_class=$(prompt "aiServiceModelsPvc.storageClassName""Enter the storage class name for models PVC""gp2")
23
-
log_storage_class=$(prompt "aiServiceLogPvc.storageClassName""Enter the storage class name for log PVC""gp2")
16
+
cluster_domain=$(prompt "Enter the cluster domain""cluster.local")
17
+
use_ecr=$(prompt "Use Privado ECR to pull container images? (true/false)""true")
18
+
node_instance_type=$(prompt "Enter the GPU node instance type""g5.xlarge")
19
+
storage_class=$(prompt "Enter the storage class name that supports RWX""efs-sc")
0 commit comments