Skip to content

Commit 6161bb8

Browse files
authored
improvement(helm): add additional instructions for AWS deployments (#851)
1 parent eb79986 commit 6161bb8

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

helm/sim/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,24 @@ Each cloud platform example includes optimized configurations:
117117

118118
### AWS (EKS)
119119
- **Storage**: EBS GP3 volumes for optimal performance
120+
- **EBS CSI Driver**: Required for persistent storage (install as EKS add-on)
120121
- **Node Selectors**: Instance type targeting (`t3.large`, `r5.large`, `g4dn.xlarge`)
121122
- **GPU Support**: GPU-optimized instances (G4, P3 families)
122123
- **Ingress**: Application Load Balancer (ALB) with AWS Certificate Manager
123124
- **IAM**: Service Account annotations for IAM roles
124125

126+
**Prerequisites for AWS:**
127+
```bash
128+
# Install EBS CSI driver add-on
129+
aws eks create-addon --cluster-name your-cluster --addon-name aws-ebs-csi-driver
130+
131+
# Create IAM role for EBS CSI driver (if using IRSA)
132+
aws iam create-role --role-name AmazonEKS_EBS_CSI_DriverRole \
133+
--assume-role-policy-document file://ebs-csi-trust-policy.json
134+
aws iam attach-role-policy --role-name AmazonEKS_EBS_CSI_DriverRole \
135+
--policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy
136+
```
137+
125138
### GCP (GKE)
126139
- **Storage**: Persistent Disk with standard and premium options
127140
- **Node Selectors**: Node pool and machine family targeting

helm/sim/templates/deployment-app.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ spec:
3838
- name: migrations
3939
image: {{ include "sim.image" (dict "context" . "image" .Values.migrations.image) }}
4040
imagePullPolicy: {{ .Values.migrations.image.pullPolicy }}
41-
command: ["bun", "run", "db:migrate"]
42-
env:
43-
- name: DATABASE_URL
44-
value: {{ include "sim.databaseUrl" . | quote }}
41+
command: ["/bin/bash", "-c"]
42+
args:
43+
- |
44+
export DATABASE_URL="{{ include "sim.databaseUrl" . }}"
45+
bun run db:migrate
4546
{{- if .Values.postgresql.enabled }}
4647
envFrom:
4748
- secretRef:

0 commit comments

Comments
 (0)