From 16ae90aac997dc56dbd26caca306ccbcdb9bdd78 Mon Sep 17 00:00:00 2001 From: Carlo Mazzaferro Date: Thu, 9 Jan 2025 09:26:10 -0800 Subject: [PATCH] values for outstanding stage reshare servers (#894) * values for outstanding stage reshare servers * wrong party id * remove unneded --- .../smpcv2-0-stage/values-reshare-server.yaml | 61 +++++++++++++++++++ .../smpcv2-2-stage/values-reshare-server.yaml | 61 +++++++++++++++++++ iris-mpc-upgrade/build.rs | 1 - 3 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 deploy/stage/smpcv2-0-stage/values-reshare-server.yaml create mode 100644 deploy/stage/smpcv2-2-stage/values-reshare-server.yaml diff --git a/deploy/stage/smpcv2-0-stage/values-reshare-server.yaml b/deploy/stage/smpcv2-0-stage/values-reshare-server.yaml new file mode 100644 index 000000000..325b37370 --- /dev/null +++ b/deploy/stage/smpcv2-0-stage/values-reshare-server.yaml @@ -0,0 +1,61 @@ +args: + - "--bind-addr" + - "0.0.0.0:7000" + - "--db-url" + - "$(SMPC__DATABASE__URL)" + - "--party-id" + - "0" + - "--environment" + - "$(ENVIRONMENT)" + - "--sender1-party-id" + - "1" + - "--sender2-party-id" + - "2" + - "--batch-size" + - "100" + - "--max-buffer-size" + - "10" + - "--healthcheck-port" + - "3001" + +initContainer: + enabled: true + image: "amazon/aws-cli:2.17.62" + name: "reshare-proto-dns-records-updater" + env: + - name: PARTY_ID + value: "1" + - name: MY_POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + configMap: + init.sh: | + #!/usr/bin/env bash + + # 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 <