diff --git a/spartan/aztec-network/templates/boot-node.yaml b/spartan/aztec-network/templates/boot-node.yaml index 779d90ee86f..6ea619b0059 100644 --- a/spartan/aztec-network/templates/boot-node.yaml +++ b/spartan/aztec-network/templates/boot-node.yaml @@ -136,7 +136,7 @@ metadata: labels: {{- include "aztec-network.labels" . | nindent 4 }} spec: - clusterIP: None + type: {{if .Values.network.public }}"LoadBalancer"{{ else }}"ClusterIP"{{ end }} selector: {{- include "aztec-network.selectorLabels" . | nindent 4 }} app: boot-node diff --git a/spartan/aztec-network/templates/metrics.yaml b/spartan/aztec-network/templates/metrics.yaml index 8af3aa2f1ab..ff62fad5f2c 100644 --- a/spartan/aztec-network/templates/metrics.yaml +++ b/spartan/aztec-network/templates/metrics.yaml @@ -78,7 +78,7 @@ metadata: labels: {{- include "aztec-network.labels" . | nindent 4 }} spec: - type: {{ .Values.metrics.service.type }} + type: {{if .Values.network.public }}"LoadBalancer"{{ else }}"ClusterIP"{{ end }} ports: - port: {{ .Values.metrics.ports.otlp }} targetPort: otlp diff --git a/spartan/aztec-network/templates/prover-node.yaml b/spartan/aztec-network/templates/prover-node.yaml index 13cb4762719..ccc0a92c96a 100644 --- a/spartan/aztec-network/templates/prover-node.yaml +++ b/spartan/aztec-network/templates/prover-node.yaml @@ -106,7 +106,7 @@ metadata: labels: {{- include "aztec-network.labels" . | nindent 4 }} spec: - clusterIP: None + type: {{if .Values.network.public }}"LoadBalancer"{{ else }}"ClusterIP"{{ end }} selector: {{- include "aztec-network.selectorLabels" . | nindent 4 }} app: prover-node diff --git a/spartan/aztec-network/templates/pxe.yaml b/spartan/aztec-network/templates/pxe.yaml index 709a0a190e3..52f1b8aed6a 100644 --- a/spartan/aztec-network/templates/pxe.yaml +++ b/spartan/aztec-network/templates/pxe.yaml @@ -1,3 +1,4 @@ +{{- if .Values.network.enableBots }} apiVersion: apps/v1 kind: Deployment metadata: @@ -65,7 +66,7 @@ metadata: labels: {{- include "aztec-network.labels" . | nindent 4 }} spec: - type: {{ .Values.pxe.service.type }} + type: {{if .Values.network.public }}"LoadBalancer"{{ else }}"ClusterIP"{{ end }} selector: {{- include "aztec-network.selectorLabels" . | nindent 4 }} app: pxe @@ -75,4 +76,5 @@ spec: targetPort: {{ .Values.pxe.service.targetPort }} {{- if and (eq .Values.pxe.service.type "NodePort") .Values.pxe.service.nodePort }} nodePort: {{ .Values.pxe.service.nodePort }} - {{- end }} \ No newline at end of file + {{- end }} +{{- end }} \ No newline at end of file diff --git a/spartan/aztec-network/templates/transaction-bot.yaml b/spartan/aztec-network/templates/transaction-bot.yaml index e1d191271a4..798a28de571 100644 --- a/spartan/aztec-network/templates/transaction-bot.yaml +++ b/spartan/aztec-network/templates/transaction-bot.yaml @@ -1,3 +1,4 @@ +{{- if .Values.network.enableBots }} apiVersion: apps/v1 kind: Deployment metadata: @@ -99,4 +100,5 @@ spec: targetPort: {{ .Values.bot.service.targetPort }} {{- if and (eq .Values.bot.service.type "NodePort") .Values.bot.service.nodePort }} nodePort: {{ .Values.bot.service.nodePort }} - {{- end }} \ No newline at end of file + {{- end }} +{{- end }} \ No newline at end of file diff --git a/spartan/aztec-network/templates/validator.yaml b/spartan/aztec-network/templates/validator.yaml index d6de0f2d5f4..4f7785efd89 100644 --- a/spartan/aztec-network/templates/validator.yaml +++ b/spartan/aztec-network/templates/validator.yaml @@ -115,7 +115,7 @@ metadata: labels: {{- include "aztec-network.labels" . | nindent 4 }} spec: - clusterIP: None + type: {{if .Values.network.public }}"LoadBalancer"{{ else }}"ClusterIP"{{ end }} selector: {{- include "aztec-network.selectorLabels" . | nindent 4 }} app: validator diff --git a/spartan/aztec-network/values.yaml b/spartan/aztec-network/values.yaml index c422508b7ff..1f1c8146c76 100644 --- a/spartan/aztec-network/values.yaml +++ b/spartan/aztec-network/values.yaml @@ -1,3 +1,10 @@ +test: "sample" +scenario: "default" + +network: + public: false + enableBots: true + images: test: image: aztecprotocol/end-to-end @@ -38,7 +45,13 @@ bootNode: disabled: true p2p: enabled: "true" - resources: {} + resources: + requests: + memory: "2Gi" + cpu: "200m" + limits: + memory: "4Gi" + cpu: "4" validator: replicas: 0 @@ -54,7 +67,13 @@ validator: disabled: false p2p: enabled: "true" - resources: {} + resources: + requests: + memory: "2Gi" + cpu: "200m" + limits: + memory: "28Gi" + cpu: "7" proverNode: replicas: 1 @@ -64,14 +83,19 @@ proverNode: debug: "aztec:*" realProofs: false proverAgentEnabled: true - resources: {} + resources: + requests: + memory: "2Gi" + cpu: "200m" + limits: + memory: "120Gi" + cpu: "15" pxe: logLevel: "debug" debug: "aztec:*" replicas: 1 service: - type: ClusterIP port: 8080 targetPort: 8080 readinessProbe: @@ -80,7 +104,13 @@ pxe: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 - resources: {} + resources: + requests: + memory: "2Gi" + cpu: "200m" + limits: + memory: "4Gi" + cpu: "1" bot: logLevel: "debug" @@ -104,7 +134,13 @@ bot: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 - resources: {} + resources: + requests: + memory: "2Gi" + cpu: "200m" + limits: + memory: "4Gi" + cpu: "1" ethereum: replicas: 1 @@ -126,11 +162,15 @@ ethereum: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 - resources: {} + resources: + requests: + memory: "2Gi" + cpu: "200m" + limits: + memory: "4Gi" + cpu: "1" metrics: - service: - type: ClusterIP ports: otlp: 4316 metrics: 4315 @@ -143,6 +183,3 @@ metrics: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 - -test: "sample" -scenario: "default"