improvement(helm): add additional instructions for AWS deployments (#851)

This commit is contained in:
Waleed Latif
2025-08-02 14:57:08 -07:00
committed by GitHub
parent eb79986b69
commit 6161bb8dbc
2 changed files with 18 additions and 4 deletions

View File

@@ -117,11 +117,24 @@ Each cloud platform example includes optimized configurations:
### AWS (EKS)
- **Storage**: EBS GP3 volumes for optimal performance
- **EBS CSI Driver**: Required for persistent storage (install as EKS add-on)
- **Node Selectors**: Instance type targeting (`t3.large`, `r5.large`, `g4dn.xlarge`)
- **GPU Support**: GPU-optimized instances (G4, P3 families)
- **Ingress**: Application Load Balancer (ALB) with AWS Certificate Manager
- **IAM**: Service Account annotations for IAM roles
**Prerequisites for AWS:**
```bash
# Install EBS CSI driver add-on
aws eks create-addon --cluster-name your-cluster --addon-name aws-ebs-csi-driver
# Create IAM role for EBS CSI driver (if using IRSA)
aws iam create-role --role-name AmazonEKS_EBS_CSI_DriverRole \
--assume-role-policy-document file://ebs-csi-trust-policy.json
aws iam attach-role-policy --role-name AmazonEKS_EBS_CSI_DriverRole \
--policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy
```
### GCP (GKE)
- **Storage**: Persistent Disk with standard and premium options
- **Node Selectors**: Node pool and machine family targeting

View File

@@ -38,10 +38,11 @@ spec:
- name: migrations
image: {{ include "sim.image" (dict "context" . "image" .Values.migrations.image) }}
imagePullPolicy: {{ .Values.migrations.image.pullPolicy }}
command: ["bun", "run", "db:migrate"]
env:
- name: DATABASE_URL
value: {{ include "sim.databaseUrl" . | quote }}
command: ["/bin/bash", "-c"]
args:
- |
export DATABASE_URL="{{ include "sim.databaseUrl" . }}"
bun run db:migrate
{{- if .Values.postgresql.enabled }}
envFrom:
- secretRef: