Skip to content

Commit

Permalink
Fixed some tutorial problems (#160)
Browse files Browse the repository at this point in the history
* Updated AWS, bumped release version

Signed-off-by: hanchenli <[email protected]>

* minor fix to readme in aws

Signed-off-by: hanchenli <[email protected]>

* minor fix to readme in aws

Signed-off-by: hanchenli <[email protected]>

* fix format

Signed-off-by: hanchenli <[email protected]>

* fix folder

Signed-off-by: hanchenli <[email protected]>

* fix tutorial

Signed-off-by: hanchenli <[email protected]>

* Fix GKE deployment tutorial

Signed-off-by: hanchenli <[email protected]>

---------

Signed-off-by: hanchenli <[email protected]>
  • Loading branch information
Hanchenli authored Feb 20, 2025
1 parent 5247c69 commit 286a3f4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 27 deletions.
26 changes: 1 addition & 25 deletions deployment_on_cloud/aws/clean_up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,32 +110,8 @@ aws eks delete-cluster --name "$CLUSTER_NAME" --region "$REGION"
echo "Waiting for cluster $CLUSTER_NAME to be deleted..."
aws eks wait cluster-deleted --name "$CLUSTER_NAME" --region "$REGION"

# TODO
# Clean up VPC
# echo "Cleaning up VPC..."
# VPC_ID=$(aws ec2 describe-vpcs \
# --filters "Name=tag:Name,Values=eksctl-${CLUSTER_NAME}-cluster/VPC" \
# --query "Vpcs[0].VpcId" \
# --output text \
# --region "$REGION")
# if [ -n "$VPC_ID" ]; then
# echo "Deleting VPC: $VPC_ID"
# aws ec2 delete-vpc --vpc-id "$VPC_ID" --region "$REGION"
# else
# echo "VPC not found, skipping..."
# fi

# Delete CloudFormation Stackecho "Deleting CloudFormation stacks..."
# STACKS=( "eksctl-${CLUSTER_NAME}-cluster" "eksctl-${CLUSTER_NAME}-cluster-nodegroup-gpu-nodegroup" )
# for STACK_NAME in "${STACKS[@]}"; do
# STACK_STATUS=$(aws cloudformation describe-stacks --stack-name "$STACK_NAME" --region "$REGION" --query "Stacks[0].StackStatus" --output text 2>/dev/null)
# if [ -n "$STACK_STATUS" ]; then
# echo "Deleting CloudFormation stack: $STACK_NAME"
# aws cloudformation delete-stack --stack-name "$STACK_NAME" --region "$REGION"
# echo "Waiting for CloudFormation stack $STACK_NAME to be deleted..."
# aws cloudformation wait stack-delete-complete --stack-name "$STACK_NAME" --region "$REGION"
# else
# echo "CloudFormation stack $STACK_NAME not found, skipping..."
# fi
# done

echo "EKS cluster $CLUSTER_NAME cleanup completed successfully!"
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tutorials/cloud_deployments/02-GCP-GKE-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ This guide walks you through the script that sets up a vLLM production stack on

Before running this setup, ensure you have:

1. GCP CLI installed and configured with credential and region set up.
1. GCP CLI installed and configured with credential and region set up [[Link]](https://cloud.google.com/sdk/docs/install)
2. Kubectl
3. Helm

## TLDR

To run the service
To run the service, go to "deployment_on_cloud/gcp" and run:

```bash
sudo bash entry_point.sh YAML_FILE_PATH
Expand Down

0 comments on commit 286a3f4

Please sign in to comment.