Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INFRA-3307: Add libsDir volume #538

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions deploy/prod/common-values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,13 @@ tolerations:
keelPolling:
# -- Specifies whether keel should poll for container updates
enabled: true

libsDir:
enabled: true
path: "/libs"
size: 2Gi
files:
- path: "/usr/local/cuda-12.2/targets/x86_64-linux/lib/libcublasLt.so.12.2.5.6"
file: "libcublasLt.so.12.2.5.6"
- path: "/usr/local/cuda-12.2/targets/x86_64-linux/lib/libcublas.so.12.2.5.6"
file: "libcublas.so.12.2.5.6"
8 changes: 6 additions & 2 deletions deploy/prod/smpcv2-0-prod/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ initContainer:

# Set up environment variables
HOSTED_ZONE_ID=$(aws route53 list-hosted-zones-by-name --dns-name "$PARTY_ID".smpcv2.worldcoin.org --query "HostedZones[].Id" --output text)

# Generate the JSON content in memory
BATCH_JSON=$(cat <<EOF
{
Expand All @@ -121,6 +121,10 @@ initContainer:
}
EOF
)

# Execute AWS CLI command with the generated JSON
aws route53 change-resource-record-sets --hosted-zone-id "$HOSTED_ZONE_ID" --change-batch "$BATCH_JSON"

cd /libs
aws s3 cp s3://wf-smpcv2-prod-libs/libcublas.so.12.2.5.6 .
aws s3 cp s3://wf-smpcv2-prod-libs/libcublasLt.so.12.2.5.6 .
12 changes: 12 additions & 0 deletions deploy/prod/smpcv2-1-prod/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,15 @@ env:

- name: SMPC__DISABLE_PERSISTENCE
value: "true"

initContainer:
enabled: true
image: "amazon/aws-cli:2.17.62"
name: "iris-mpc-copy-cuda-libs"
configMap:
init.sh: |
#!/usr/bin/env bash

cd /libs
aws s3 cp s3://wf-smpcv2-prod-libs/libcublas.so.12.2.5.6 .
aws s3 cp s3://wf-smpcv2-prod-libs/libcublasLt.so.12.2.5.6 .
12 changes: 12 additions & 0 deletions deploy/prod/smpcv2-2-prod/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,15 @@ env:

- name: SMPC__DISABLE_PERSISTENCE
value: "true"

initContainer:
enabled: true
image: "amazon/aws-cli:2.17.62"
name: "iris-mpc-copy-cuda-libs"
configMap:
init.sh: |
#!/usr/bin/env bash

cd /libs
aws s3 cp s3://wf-smpcv2-prod-libs/libcublas.so.12.2.5.6 .
aws s3 cp s3://wf-smpcv2-prod-libs/libcublasLt.so.12.2.5.6 .
10 changes: 10 additions & 0 deletions deploy/stage/common-values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,13 @@ tolerations:
keelPolling:
# -- Specifies whether keel should poll for container updates
enabled: true

libsDir:
enabled: true
path: "/libs"
size: 2Gi
files:
- path: "/usr/local/cuda-12.2/targets/x86_64-linux/lib/libcublasLt.so.12.2.5.6"
file: "libcublasLt.so.12.2.5.6"
- path: "/usr/local/cuda-12.2/targets/x86_64-linux/lib/libcublas.so.12.2.5.6"
file: "libcublas.so.12.2.5.6"
8 changes: 6 additions & 2 deletions deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ initContainer:

# Set up environment variables
HOSTED_ZONE_ID=$(aws route53 list-hosted-zones-by-name --dns-name "$PARTY_ID".stage.smpcv2.worldcoin.dev --query "HostedZones[].Id" --output text)

# Generate the JSON content in memory
BATCH_JSON=$(cat <<EOF
{
Expand All @@ -115,6 +115,10 @@ initContainer:
}
EOF
)

# Execute AWS CLI command with the generated JSON
aws route53 change-resource-record-sets --hosted-zone-id "$HOSTED_ZONE_ID" --change-batch "$BATCH_JSON"

cd /libs
aws s3 cp s3://wf-smpcv2-stage-libs/libcublas.so.12.2.5.6 .
aws s3 cp s3://wf-smpcv2-stage-libs/libcublasLt.so.12.2.5.6 .
12 changes: 12 additions & 0 deletions deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,15 @@ env:

- name: SMPC__MAX_BATCH_SIZE
value: "64"

initContainer:
enabled: true
image: "amazon/aws-cli:2.17.62"
name: "iris-mpc-copy-cuda-libs"
configMap:
init.sh: |
#!/usr/bin/env bash

cd /libs
aws s3 cp s3://wf-smpcv2-stage-libs/libcublas.so.12.2.5.6 .
aws s3 cp s3://wf-smpcv2-stage-libs/libcublasLt.so.12.2.5.6 .
12 changes: 12 additions & 0 deletions deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,15 @@ env:

- name: SMPC__MAX_BATCH_SIZE
value: "64"

initContainer:
enabled: true
image: "amazon/aws-cli:2.17.62"
name: "iris-mpc-copy-cuda-libs"
configMap:
init.sh: |
#!/usr/bin/env bash

cd /libs
aws s3 cp s3://wf-smpcv2-stage-libs/libcublas.so.12.2.5.6 .
aws s3 cp s3://wf-smpcv2-stage-libs/libcublasLt.so.12.2.5.6 .
Loading