Skip to content

Commit

Permalink
Fog routers infra changes (mobilecoinfoundation#3329)
Browse files Browse the repository at this point in the history
* Changes for deploying the fog routers

* Update clusterissuer

* Revert ratelimit boolean test in templates

* Removed redundant ingresses
  • Loading branch information
joekottke authored Apr 24, 2023
1 parent 7298a6b commit 77249ff
Show file tree
Hide file tree
Showing 15 changed files with 985 additions and 470 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/mobilecoin-workflow-dev-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
image:
org: ${{ inputs.docker_image_org }}
global:
certManagerClusterIssuer: zerossl-prod-http
certManagerClusterIssuer: google-public-ca
node:
resources:
limits:
Expand All @@ -86,8 +86,8 @@ jobs:
intel.com/sgx: 2000
persistence:
enabled: false
client:
attest:
ingress:
clientAttest:
rateLimits:
enabled: false
EOF
Expand Down Expand Up @@ -140,8 +140,9 @@ jobs:
image:
org: ${{ inputs.docker_image_org }}
global:
certManagerClusterIssuer: zerossl-prod-http
certManagerClusterIssuer: google-public-ca
fogLedger:
replicaCount: 2
resources:
limits:
intel.com/sgx: 2000
Expand All @@ -156,6 +157,16 @@ jobs:
intel.com/sgx: 2000
requests:
intel.com/sgx: 2000
blockHeighRetrieval:
url: 'https://node1.alpha.development.mobilecoin.com/gw/consensus_common.BlockchainAPI/GetLastBlockInfo'
responseJQ: '.index'
requestBody: ' '
queryInterval: 5m
fogViewStores: &stores
shardSize: 100_000
exceedBlockHeightBy: 5_000
shardOverlap: 0
fogLedgerStores: *stores
EOF
- name: Deploy fog-services
Expand Down
3 changes: 2 additions & 1 deletion .internal-ci/docker/Dockerfile.fog-ledger
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ FROM ${REPO_ORG}/runtime-base:${BASE_TAG}
# Copy binaries
ARG RUST_BIN_PATH=target/release
COPY ${RUST_BIN_PATH}/libledger-enclave.signed.so /usr/bin/
COPY ${RUST_BIN_PATH}/ledger_server /usr/bin/
COPY ${RUST_BIN_PATH}/ledger_router /usr/bin/
COPY ${RUST_BIN_PATH}/key_image_store /usr/bin/
COPY ${RUST_BIN_PATH}/mobilecoind /usr/bin/
COPY ${RUST_BIN_PATH}/mc-admin-http-gateway /usr/bin/
COPY ${RUST_BIN_PATH}/mc-ledger-migration /usr/bin/
Expand Down
1 change: 1 addition & 0 deletions .internal-ci/docker/Dockerfile.fogview
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ FROM ${REPO_ORG}/runtime-base:${BASE_TAG}
ARG RUST_BIN_PATH=target/release
COPY ${RUST_BIN_PATH}/libview-enclave.signed.so /usr/bin/
COPY ${RUST_BIN_PATH}/fog_view_server /usr/bin/
COPY ${RUST_BIN_PATH}/fog_view_router /usr/bin/
COPY ${RUST_BIN_PATH}/mc-admin-http-gateway /usr/bin/
COPY ${RUST_BIN_PATH}/mc-util-grpc-admin-tool /usr/bin/

Expand Down
11 changes: 11 additions & 0 deletions .internal-ci/helm/fog-services/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ app.kubernetes.io/name: {{ include "fogServices.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/* Block height retrieval URL */}}
{{/* E.x. https://readonly-fs-{mainn|test}net.mobilecoin.com/wallet/v2 */}}
{{- define "fogServices.blockHeightURL" -}}
{{- if .Values.blockHeighRetrieval.url }}
{{- .Values.blockHeighRetrieval.url }}
{{- else if .Values.blockHeighRetrieval.urlNetworkTemplate }}
{{- $networkName := include "fogServices.mobileCoinNetwork.network" . }}
{{- tpl .Values.blockHeighRetrieval.urlNetworkTemplate (dict "Network" $networkName "Template" .Template) }}
{{- end }}
{{- end }}

{{/* Fog Public FQDN */}}
{{- define "fogServices.fogPublicFQDN" -}}
{{- $domainname := "" }}
Expand Down
Loading

0 comments on commit 77249ff

Please sign in to comment.