@@ -33,13 +33,42 @@ deploy_cluster() {
33
33
ansible-playbook -i " $INVENTORY_FILE " kubernetes-single-node.yaml
34
34
35
35
echo " Deployment complete!"
36
- echo " Check the instance details file for SSH access information."
37
36
38
37
echo " Deploying LLM-D..."
39
38
ansible-playbook -i " $INVENTORY_FILE " llm-d-deploy.yaml
40
39
41
40
echo " Testing LLM-D..."
42
41
ansible-playbook -i " $INVENTORY_FILE " llm-d-test.yaml
42
+
43
+ echo " "
44
+ echo " === Instance Information ==="
45
+
46
+ # Find the most recent instance details file
47
+ DETAILS_FILE=$( ls -rt instance-* -details.txt | tail -1)
48
+
49
+ if [ -n " $DETAILS_FILE " ]; then
50
+ # Extract key information from the details file
51
+ INSTANCE_ID=$( grep " Instance ID:" " $DETAILS_FILE " | cut -d' ' -f3)
52
+ INSTANCE_NAME=$( grep " Instance Name:" " $DETAILS_FILE " | cut -d' ' -f3)
53
+ PUBLIC_IP=$( grep " Public IP:" " $DETAILS_FILE " | cut -d' ' -f3)
54
+ PRIVATE_IP=$( grep " Private IP:" " $DETAILS_FILE " | cut -d' ' -f3)
55
+ INSTANCE_TYPE=$( grep " Instance Type:" " $DETAILS_FILE " | cut -d' ' -f3)
56
+ SSH_COMMAND=$( grep " ssh -i" " $DETAILS_FILE " )
57
+
58
+ echo " Instance ID: $INSTANCE_ID "
59
+ echo " Instance Name: $INSTANCE_NAME "
60
+ echo " Instance Type: $INSTANCE_TYPE "
61
+ echo " Public IP: $PUBLIC_IP "
62
+ echo " Private IP: $PRIVATE_IP "
63
+ echo " "
64
+ echo " SSH Access:"
65
+ echo " $SSH_COMMAND "
66
+ echo " "
67
+ echo " Full details saved to: $DETAILS_FILE "
68
+ else
69
+ echo " Warning: Could not find instance details file"
70
+ echo " Check the instance details file for SSH access information."
71
+ fi
43
72
}
44
73
45
74
cleanup_instances () {
0 commit comments