#
Deploying on AWS
#
Virtual Machine (EC2)
You can run Curiosity on an Amazon EC2 instance using Docker.
#
Requirements
- EC2 Instance: Launch an instance (e.g., Ubuntu or Amazon Linux 2).
- Persistent Storage (EBS): Create an Amazon EBS volume and attach it to your instance.
- Mounting: Format and mount the volume (e.g., to
/data).
#
Deployment
Once Docker is installed and the volume is mounted at /data:
docker run -p 8080:8080 -v /data:/data -e storage=/data curiosityai/curiosity
Alternatively, you can use Docker Compose to manage the service configuration.
#
Managed Kubernetes (EKS)
Amazon Elastic Kubernetes Service (EKS) supports persistent storage for stateful applications.
#
Persistent Storage
- EKS (EC2 Launch Type): Use the Amazon EBS CSI driver to provision EBS volumes for your pods.
- EKS (Fargate Launch Type): Fargate nodes do not support EBS volumes. You must use Amazon EFS (Elastic File System) for persistent storage.
#
Deployment
Use a StatefulSet configuration similar to the one described in the Kubernetes guide, ensuring your PersistentVolumeClaim references the correct StorageClass (e.g., gp2 or gp3 for EBS, or your EFS storage class).