Skip to content

Commit fc5bed1

Browse files
committed
adding csi driver
1 parent 4351d21 commit fc5bed1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

aws/build-an-deploy-aws.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,24 @@ helm upgrade --install mj ../helm/wrongsecrets-ctf-party \
139139

140140
# Install CTFd
141141

142+
echo "Installing EBS CSI driver"
143+
eksctl create iamserviceaccount \
144+
--name ebs-csi-controller-sa \
145+
--namespace kube-system \
146+
--cluster $CLUSTERNAME \
147+
--attach-policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy \
148+
--approve \
149+
--role-only \
150+
--role-name AmazonEKS_EBS_CSI_DriverRole
151+
--region $AWS_REGION
152+
153+
echo "managing EBS CSI Driver as a separate eks addon"
154+
eksctl create addon --name aws-ebs-csi-driver \
155+
--cluster $CLUSTERNAME \
156+
--service-account-role-arn arn:aws:iam::${ACCOUNT_ID}:role/AmazonEKS_EBS_CSI_DriverRole \
157+
--force \
158+
--region $AWS_REGION
159+
142160
export HELM_EXPERIMENTAL_OCI=1
143161
kubectl create namespace ctfd
144162
helm -n ctfd install ctfd oci://ghcr.io/bman46/ctfd/ctfd \

0 commit comments

Comments
 (0)