From af9fd475fd6fb31390769a17de33f107a27334e4 Mon Sep 17 00:00:00 2001 From: Martin Khachatryan <86410695+Martin9204@users.noreply.github.com> Date: Mon, 4 May 2026 20:03:26 +0400 Subject: [PATCH] Add Aztec network gRPC support to Helm chart Adds network-aztec.yaml template, networkAztec values block, and configmap endpoint wiring so the chart can deploy the aztec-testnet-grpc image alongside the other network gRPC services. Co-Authored-By: Claude Opus 4.7 (1M context) --- deploy/helm/templates/configmap.yaml | 5 ++ deploy/helm/templates/network-aztec.yaml | 78 ++++++++++++++++++++++++ deploy/helm/values.yaml | 18 ++++++ 3 files changed, 101 insertions(+) create mode 100644 deploy/helm/templates/network-aztec.yaml diff --git a/deploy/helm/templates/configmap.yaml b/deploy/helm/templates/configmap.yaml index 2aa68a30..0771020a 100644 --- a/deploy/helm/templates/configmap.yaml +++ b/deploy/helm/templates/configmap.yaml @@ -38,3 +38,8 @@ data: {{ printf "NetworkGrpc__Endpoints__%s" $slug }}: {{ printf "http://%s-network-starknet-%s:80" (include "train-solver.fullname" $) $slug | quote }} {{- end }} {{- end }} + {{- range $slug, $values := .Values.networkAztec }} + {{- if $values.enabled }} + {{ printf "NetworkGrpc__Endpoints__%s" $slug }}: {{ printf "http://%s-network-aztec-%s:80" (include "train-solver.fullname" $) $slug | quote }} + {{- end }} + {{- end }} diff --git a/deploy/helm/templates/network-aztec.yaml b/deploy/helm/templates/network-aztec.yaml new file mode 100644 index 00000000..055ad33b --- /dev/null +++ b/deploy/helm/templates/network-aztec.yaml @@ -0,0 +1,78 @@ +{{- range $slug, $values := .Values.networkAztec }} +{{- if $values.enabled }} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "train-solver.fullname" $ }}-network-aztec-{{ $slug }} + labels: + {{- include "train-solver.labels" $ | nindent 4 }} + app.kubernetes.io/component: network-aztec-{{ $slug }} +spec: + replicas: {{ $values.replicaCount }} + selector: + matchLabels: + app.kubernetes.io/name: {{ include "train-solver.fullname" $ }} + app.kubernetes.io/component: network-aztec-{{ $slug }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "train-solver.fullname" $ }} + app.kubernetes.io/component: network-aztec-{{ $slug }} + {{- with $.Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with $.Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + spec: + serviceAccountName: {{ include "train-solver.serviceAccountName" $ }} + {{- with $.Values.image.pullSecrets }} + imagePullSecrets: + {{- range . }} + - name: {{ . }} + {{- end }} + {{- end }} + containers: + - name: network-aztec + image: {{ include "train-solver.image" (dict "registry" $.Values.image.registry "repo" $values.image.repository "tag" $values.image.tag) }} + imagePullPolicy: {{ $.Values.image.pullPolicy }} + ports: + - name: http + containerPort: {{ $values.port }} + envFrom: + {{- include "train-solver.envFrom" $ | nindent 12 }} + env: + - name: TrainSolver__NetworkType + value: "aztec" + - name: TrainSolver__ChainId + value: {{ required "chainId is required for each network" $values.chainId | quote }} + - name: GRPC_PORT + value: {{ $values.port | quote }} + {{- range $k, $v := $values.env }} + - name: {{ $k }} + value: {{ $v | quote }} + {{- end }} + resources: + {{- toYaml $values.resources | nindent 12 }} +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "train-solver.fullname" $ }}-network-aztec-{{ $slug }} + labels: + {{- include "train-solver.labels" $ | nindent 4 }} + app.kubernetes.io/component: network-aztec-{{ $slug }} +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: http + protocol: TCP + name: http + selector: + app.kubernetes.io/name: {{ include "train-solver.fullname" $ }} + app.kubernetes.io/component: network-aztec-{{ $slug }} +--- +{{- end }} +{{- end }} diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml index 1b2edf1e..47ede8e3 100644 --- a/deploy/helm/values.yaml +++ b/deploy/helm/values.yaml @@ -257,6 +257,24 @@ networkStarknet: memory: 512Mi env: {} +networkAztec: + aztec-testnet: + enabled: false + chainId: "4138294185" + image: + repository: trainprotocol/solver-aztec-testnet-grpc + tag: dev + replicaCount: 1 + port: 8080 + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + cpu: 500m + memory: 512Mi + env: {} + # --------------------------------------------------------------------------- # Ingress # ---------------------------------------------------------------------------