- Data is stored in Cloud SQL and Memstore for Redis to improve durability, and the components of Dify are deployed in GKE to improve reliability and scalability.
- Cloud Armor and Global Load Balancing can provide global acceleration capabilities, DDoS protection, and WAF strategies.
- set parameters
export PROJECT_ID=your_project_id
export REGION=us-central1
export VPC_NETWORK=your_vpc_network
export GKE_CLUSTER_NAME=dify
export REDIS_CLUSTER_NAME=dify
export DB_CLUSTER_NAME=dify
export DB_PASSWORD=your_password
export DIFY_VERSION=0.6.12
export GOOGLE_STORAGE_BUCKET_NAME=your_bucket_name
export ZONE=${REGION}-b
- deploy
bash deploy.sh
- wait for the script to finish, it takes about 15 minutes
- set parameters
PROJECT_ID=speedy-victory-336109
REGION=us-central1
VPC_NETWORK=myvpc
GKE_CLUSTER_NAME=dify
REDIS_CLUSTER_NAME=dify
DB_CLUSTER_NAME=dify
- clean
bash clean.sh
todo