From 11aaddf534514ff709b572707d87fb0fa6d83356 Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Fri, 7 Mar 2025 16:53:50 +0000 Subject: [PATCH 1/2] fix --- spartan/aztec-network/templates/_helpers.tpl | 7 ++----- spartan/aztec-network/templates/boot-node.yaml | 1 + spartan/aztec-network/templates/full-node.yaml | 1 + spartan/aztec-network/templates/prover-agent.yaml | 1 + spartan/aztec-network/templates/prover-broker.yaml | 1 + spartan/aztec-network/templates/prover-node.yaml | 1 + spartan/aztec-network/templates/transaction-bot.yaml | 1 + spartan/aztec-network/templates/validator.yaml | 1 + 8 files changed, 9 insertions(+), 5 deletions(-) diff --git a/spartan/aztec-network/templates/_helpers.tpl b/spartan/aztec-network/templates/_helpers.tpl index 3a0fb55da3c4..1b9c0e2b8407 100644 --- a/spartan/aztec-network/templates/_helpers.tpl +++ b/spartan/aztec-network/templates/_helpers.tpl @@ -287,12 +287,12 @@ Combined wait-for-services and configure-env container for full nodes {{- end -}} {{/* -Combined P2P, Service Address, and OpenTelemetry Setup Container +Combined P2P, and Service Address Setup Container */}} {{- define "aztec-network.combinedAllSetupContainer" -}} {{- $serviceName := base $.Template.Name | trimSuffix ".yaml" -}} - name: setup-all - {{- include "aztec-network.image" . | nindent 2 }} + image: bitnami/kubectl command: - /bin/bash - -c @@ -302,9 +302,6 @@ Combined P2P, Service Address, and OpenTelemetry Setup Container # Setup service addresses /scripts/setup-service-addresses.sh - - # Setup OpenTelemetry resource - /scripts/setup-otel-resource.sh env: - name: NETWORK_PUBLIC value: "{{ .Values.network.public }}" diff --git a/spartan/aztec-network/templates/boot-node.yaml b/spartan/aztec-network/templates/boot-node.yaml index b0897148e2c4..39ff87d3e44f 100644 --- a/spartan/aztec-network/templates/boot-node.yaml +++ b/spartan/aztec-network/templates/boot-node.yaml @@ -42,6 +42,7 @@ spec: terminationGracePeriodSeconds: 5 # default is 30 - speed up initcontainer termination initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} + {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} # Generate the validator addresses; used in the deploy-l1-contracts step - name: generate-validator-addresses diff --git a/spartan/aztec-network/templates/full-node.yaml b/spartan/aztec-network/templates/full-node.yaml index d983766777b8..9c5de221b857 100644 --- a/spartan/aztec-network/templates/full-node.yaml +++ b/spartan/aztec-network/templates/full-node.yaml @@ -41,6 +41,7 @@ spec: {{- end }} initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} + {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} {{- include "aztec-network.combinedWaitAndConfigureContainer" . | nindent 8 }} containers: diff --git a/spartan/aztec-network/templates/prover-agent.yaml b/spartan/aztec-network/templates/prover-agent.yaml index 51b76161119c..d501d0b8c732 100644 --- a/spartan/aztec-network/templates/prover-agent.yaml +++ b/spartan/aztec-network/templates/prover-agent.yaml @@ -46,6 +46,7 @@ spec: defaultMode: 0755 initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} + {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} - name: wait-for-prover-node {{- include "aztec-network.image" . | nindent 10 }} command: diff --git a/spartan/aztec-network/templates/prover-broker.yaml b/spartan/aztec-network/templates/prover-broker.yaml index 5eeff959ddd5..90c221bffe16 100644 --- a/spartan/aztec-network/templates/prover-broker.yaml +++ b/spartan/aztec-network/templates/prover-broker.yaml @@ -49,6 +49,7 @@ spec: defaultMode: 0755 initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} + {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} - name: wait-for-dependencies {{- include "aztec-network.image" . | nindent 10 }} diff --git a/spartan/aztec-network/templates/prover-node.yaml b/spartan/aztec-network/templates/prover-node.yaml index efeeb50ccadc..674661fa94c1 100644 --- a/spartan/aztec-network/templates/prover-node.yaml +++ b/spartan/aztec-network/templates/prover-node.yaml @@ -41,6 +41,7 @@ spec: terminationGracePeriodSeconds: 5 # default is 30 - speed up initcontainer termination initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} + {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} - name: get-private-key image: {{ .Values.images.foundry.image }} diff --git a/spartan/aztec-network/templates/transaction-bot.yaml b/spartan/aztec-network/templates/transaction-bot.yaml index 0f0217ca7ec1..09330adfca0d 100644 --- a/spartan/aztec-network/templates/transaction-bot.yaml +++ b/spartan/aztec-network/templates/transaction-bot.yaml @@ -50,6 +50,7 @@ spec: terminationGracePeriodSeconds: 5 # default is 30 - speed up initcontainer termination initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} + {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} - name: get-private-key image: {{ .Values.images.foundry.image }} diff --git a/spartan/aztec-network/templates/validator.yaml b/spartan/aztec-network/templates/validator.yaml index e6f7edc209f7..8e06f66ded9a 100644 --- a/spartan/aztec-network/templates/validator.yaml +++ b/spartan/aztec-network/templates/validator.yaml @@ -43,6 +43,7 @@ spec: terminationGracePeriodSeconds: 5 # default is 30 - speed up initcontainer termination initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} + {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} # Get the private key from the mnemonic - based on the pod replica index - name: get-private-key From 0dc1acaac5cda2ff33f1952548be6a6605888d60 Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Fri, 7 Mar 2025 17:30:17 +0000 Subject: [PATCH 2/2] chore: setup otel in main container --- spartan/aztec-network/templates/_helpers.tpl | 31 +++++++++++++++++++ .../aztec-network/templates/boot-node.yaml | 26 +++------------- .../aztec-network/templates/full-node.yaml | 29 +++-------------- .../aztec-network/templates/prover-agent.yaml | 23 +++----------- .../templates/prover-broker.yaml | 22 +++---------- .../aztec-network/templates/prover-node.yaml | 26 +++------------- .../templates/transaction-bot.yaml | 18 +++-------- .../aztec-network/templates/validator.yaml | 26 +++------------- 8 files changed, 60 insertions(+), 141 deletions(-) diff --git a/spartan/aztec-network/templates/_helpers.tpl b/spartan/aztec-network/templates/_helpers.tpl index 1b9c0e2b8407..7045a38ff4c5 100644 --- a/spartan/aztec-network/templates/_helpers.tpl +++ b/spartan/aztec-network/templates/_helpers.tpl @@ -188,6 +188,37 @@ Sets up the OpenTelemetry resource attributes for a service mountPath: /shared/config {{- end -}} +{{/* +Otel Env vars +*/}} +{{- define "aztec-network.otelEnvVars" -}} +{{- $serviceName := base $.Template.Name | trimSuffix ".yaml" -}} +- name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP +- name: K8S_POD_UID + valueFrom: + fieldRef: + fieldPath: metadata.uid +- name: K8S_POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name +- name: K8S_NAMESPACE_NAME + valueFrom: + fieldRef: + fieldPath: metadata.namespace +- name: OTEL_SERVICE_NAME + value: "{{ $serviceName }}" +- name: OTEL_RESOURCE_ATTRIBUTES + value: 'service.name={{ .Release.Name }},service.namespace={{ .Release.Namespace }},service.version={{ .Chart.AppVersion }},environment={{ .Values.environment | default "production" }}' +- name: USE_GCLOUD_LOGGING + value: "{{ .Values.telemetry.useGcloudLogging }}" +- name: OTEL_EXCLUDE_METRICS + value: "{{ .Values.telemetry.excludeMetrics }}" +{{- end -}} + {{/** Anti-affinity when running in public network mode */}} diff --git a/spartan/aztec-network/templates/boot-node.yaml b/spartan/aztec-network/templates/boot-node.yaml index 39ff87d3e44f..9af0298e24c1 100644 --- a/spartan/aztec-network/templates/boot-node.yaml +++ b/spartan/aztec-network/templates/boot-node.yaml @@ -42,7 +42,6 @@ spec: terminationGracePeriodSeconds: 5 # default is 30 - speed up initcontainer termination initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} - {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} # Generate the validator addresses; used in the deploy-l1-contracts step - name: generate-validator-addresses @@ -133,10 +132,10 @@ spec: - /bin/bash - -c - | + source /scripts/setup-otel-resource.sh && \ source /shared/contracts/contracts.env && \ source /shared/config/p2p-addresses && \ source /shared/config/service-addresses && \ - source /shared/config/otel-resource && \ env && \ node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --node --archiver --sequencer --pxe startupProbe: @@ -156,27 +155,14 @@ spec: volumeMounts: - name: config mountPath: /shared/config + - name: scripts + mountPath: /scripts - name: boot-node-data mountPath: {{ .Values.bootNode.dataDir }} - name: scripts-output mountPath: /shared/contracts env: - - name: POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - - name: K8S_POD_UID - valueFrom: - fieldRef: - fieldPath: metadata.uid - - name: K8S_POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: K8S_NAMESPACE_NAME - valueFrom: - fieldRef: - fieldPath: metadata.namespace + {{- include "aztec-network.otelEnvVars" . | nindent 12 }} - name: NODE_OPTIONS value: "--max-old-space-size={{ .Values.bootNode.maxOldSpaceSize}}" - name: AZTEC_PORT @@ -223,10 +209,6 @@ spec: value: "{{ .Values.storage.dataStoreMapSize }}" - name: WS_DB_MAP_SIZE_KB value: "{{ .Values.storage.worldStateMapSize }}" - - name: USE_GCLOUD_LOGGING - value: "{{ .Values.telemetry.useGcloudLogging }}" - - name: OTEL_EXCLUDE_METRICS - value: "{{ .Values.telemetry.excludeMetrics }}" - name: TEST_ACCOUNTS value: "{{ .Values.aztec.testAccounts }}" {{- if .Values.blobSink.enabled }} diff --git a/spartan/aztec-network/templates/full-node.yaml b/spartan/aztec-network/templates/full-node.yaml index 9c5de221b857..aeb5678a7fac 100644 --- a/spartan/aztec-network/templates/full-node.yaml +++ b/spartan/aztec-network/templates/full-node.yaml @@ -41,7 +41,6 @@ spec: {{- end }} initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} - {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} {{- include "aztec-network.combinedWaitAndConfigureContainer" . | nindent 8 }} containers: @@ -51,6 +50,7 @@ spec: - /bin/bash - -c - | + source /scripts/setup-otel-resource.sh source /shared/contracts/contracts.env source /shared/config/p2p-addresses source /shared/config/service-addresses @@ -72,6 +72,8 @@ spec: timeoutSeconds: 30 failureThreshold: 3 volumeMounts: + - name: scripts + mountPath: /scripts - name: config mountPath: /shared/config - name: full-node-data @@ -80,24 +82,7 @@ spec: mountPath: /shared/contracts/contracts.env subPath: contracts.env env: - - name: POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - - name: K8S_POD_UID - valueFrom: - fieldRef: - fieldPath: metadata.uid - - name: K8S_POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: OTEL_SERVICE_NAME - value: full-node - - name: K8S_NAMESPACE_NAME - valueFrom: - fieldRef: - fieldPath: metadata.namespace + {{- include "aztec-network.otelEnvVars" . | nindent 12 }} - name: NODE_OPTIONS value: "--max-old-space-size={{ .Values.fullNode.maxOldSpaceSize}}" - name: AZTEC_PORT @@ -116,8 +101,6 @@ spec: value: "true" - name: L1_CHAIN_ID value: "{{ .Values.ethereum.chainId }}" - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name={{ .Release.Name }},service.namespace={{ .Release.Namespace }},service.version={{ .Chart.AppVersion }},environment={{ .Values.environment | default "production" }} - name: PROVER_REAL_PROOFS value: "{{ .Values.aztec.realProofs }}" - name: PXE_PROVER_ENABLED @@ -146,10 +129,6 @@ spec: value: "{{ .Values.storage.dataStoreMapSize }}" - name: WS_DB_MAP_SIZE_KB value: "{{ .Values.storage.worldStateMapSize }}" - - name: USE_GCLOUD_LOGGING - value: "{{ .Values.telemetry.useGcloudLogging }}" - - name: OTEL_EXCLUDE_METRICS - value: "{{ .Values.telemetry.excludeMetrics }}" - name: P2P_BOOTSTRAP_NODES_AS_FULL_PEERS value: "{{ .Values.network.p2pBootstrapNodesAsFullPeers }}" - name: TEST_ACCOUNTS diff --git a/spartan/aztec-network/templates/prover-agent.yaml b/spartan/aztec-network/templates/prover-agent.yaml index d501d0b8c732..c063471889a7 100644 --- a/spartan/aztec-network/templates/prover-agent.yaml +++ b/spartan/aztec-network/templates/prover-agent.yaml @@ -46,7 +46,7 @@ spec: defaultMode: 0755 initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} - {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} + - name: wait-for-prover-node {{- include "aztec-network.image" . | nindent 10 }} command: @@ -69,26 +69,17 @@ spec: volumeMounts: - name: config mountPath: /shared/config + - name: scripts + mountPath: /scripts command: - "/bin/bash" - "-c" - | + source /scripts/setup-otel-resource.sh && \ source /shared/config/service-addresses && \ - source /shared/config/otel-resource && \ node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --prover-agent env: - - name: K8S_POD_UID - valueFrom: - fieldRef: - fieldPath: metadata.uid - - name: K8S_POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: K8S_NAMESPACE_NAME - valueFrom: - fieldRef: - fieldPath: metadata.namespace + {{- include "aztec-network.otelEnvVars" . | nindent 12 }} - name: AZTEC_PORT value: "{{ .Values.proverAgent.service.nodePort }}" - name: LOG_LEVEL @@ -109,10 +100,6 @@ spec: value: "{{ .Values.proverAgent.testDelayFactor }}" - name: PROVER_AGENT_PROOF_TYPES value: {{ join "," .Values.proverAgent.proofTypes | quote }} - - name: USE_GCLOUD_LOGGING - value: "{{ .Values.telemetry.useGcloudLogging }}" - - name: OTEL_EXCLUDE_METRICS - value: "{{ .Values.telemetry.excludeMetrics }}" resources: {{- toYaml .Values.proverAgent.resources | nindent 12 }} {{- end }} diff --git a/spartan/aztec-network/templates/prover-broker.yaml b/spartan/aztec-network/templates/prover-broker.yaml index 90c221bffe16..a1cf0054f316 100644 --- a/spartan/aztec-network/templates/prover-broker.yaml +++ b/spartan/aztec-network/templates/prover-broker.yaml @@ -49,7 +49,6 @@ spec: defaultMode: 0755 initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} - {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} - name: wait-for-dependencies {{- include "aztec-network.image" . | nindent 10 }} @@ -112,27 +111,18 @@ spec: mountPath: /shared/contracts - name: prover-broker-data mountPath: {{ .Values.proverBroker.dataDir }} + - name: scripts + mountPath: /scripts command: - "/bin/bash" - "-c" - | + source /scripts/setup-otel-resource.sh && \ source /shared/config/service-addresses && \ source /shared/contracts/contracts.env && \ - source /shared/config/otel-resource && \ node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --prover-broker env: - - name: K8S_POD_UID - valueFrom: - fieldRef: - fieldPath: metadata.uid - - name: K8S_POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: K8S_NAMESPACE_NAME - valueFrom: - fieldRef: - fieldPath: metadata.namespace + {{- include "aztec-network.otelEnvVars" . | nindent 12 }} - name: NODE_OPTIONS value: "--max-old-space-size={{ .Values.proverBroker.maxOldSpaceSize}}" - name: L1_CHAIN_ID @@ -153,10 +143,6 @@ spec: value: "{{ .Values.proverBroker.dataDir }}" - name: DATA_STORE_MAP_SIZE_KB value: "{{ .Values.storage.dataStoreMapSize }}" - - name: USE_GCLOUD_LOGGING - value: "{{ .Values.telemetry.useGcloudLogging }}" - - name: OTEL_EXCLUDE_METRICS - value: "{{ .Values.telemetry.excludeMetrics }}" resources: {{- toYaml .Values.proverBroker.resources | nindent 12 }} volumes: diff --git a/spartan/aztec-network/templates/prover-node.yaml b/spartan/aztec-network/templates/prover-node.yaml index 674661fa94c1..1962078f2b22 100644 --- a/spartan/aztec-network/templates/prover-node.yaml +++ b/spartan/aztec-network/templates/prover-node.yaml @@ -41,7 +41,6 @@ spec: terminationGracePeriodSeconds: 5 # default is 30 - speed up initcontainer termination initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} - {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} - name: get-private-key image: {{ .Values.images.foundry.image }} @@ -135,14 +134,16 @@ spec: - /bin/bash - -c - | + source /scripts/setup-otel-resource.sh && \ source /shared/config/keys.env && \ source /shared/contracts/contracts.env && \ source /shared/config/p2p-addresses && \ source /shared/config/service-addresses && \ - source /shared/config/otel-resource && \ env && \ node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --prover-node --archiver volumeMounts: + - name: scripts + mountPath: /scripts - name: contracts-env mountPath: /shared/contracts - name: config @@ -150,22 +151,7 @@ spec: - name: prover-node-data mountPath: {{ .Values.proverNode.dataDir }} env: - - name: K8S_POD_UID - valueFrom: - fieldRef: - fieldPath: metadata.uid - - name: K8S_POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: K8S_NAMESPACE_NAME - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP + {{- include "aztec-network.otelEnvVars" . | nindent 12 }} - name: NODE_OPTIONS value: "--max-old-space-size={{ .Values.proverNode.maxOldSpaceSize}}" - name: AZTEC_PORT @@ -230,10 +216,6 @@ spec: value: "{{ .Values.storage.dataStoreMapSize }}" - name: WS_DB_MAP_SIZE_KB value: "{{ .Values.storage.worldStateMapSize }}" - - name: USE_GCLOUD_LOGGING - value: "{{ .Values.telemetry.useGcloudLogging }}" - - name: OTEL_EXCLUDE_METRICS - value: "{{ .Values.telemetry.excludeMetrics }}" - name: TEST_ACCOUNTS value: "{{ .Values.aztec.testAccounts }}" {{- if .Values.blobSink.enabled }} diff --git a/spartan/aztec-network/templates/transaction-bot.yaml b/spartan/aztec-network/templates/transaction-bot.yaml index 09330adfca0d..a468d7ab5b41 100644 --- a/spartan/aztec-network/templates/transaction-bot.yaml +++ b/spartan/aztec-network/templates/transaction-bot.yaml @@ -50,7 +50,6 @@ spec: terminationGracePeriodSeconds: 5 # default is 30 - speed up initcontainer termination initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} - {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} - name: get-private-key image: {{ .Values.images.foundry.image }} @@ -107,10 +106,12 @@ spec: - "/bin/bash" - "-c" - | + source /scripts/setup-otel-resource.sh + source /shared/config/service-addresses cat /shared/config/service-addresses + source /shared/config/keys.env - source /shared/config/otel-resource {{- if .Values.bot.nodeUrl }} export AZTEC_NODE_URL={{ .Values.bot.nodeUrl }} {{- else if .Values.network.public }} @@ -121,18 +122,7 @@ spec: echo "AZTEC_NODE_URL=${AZTEC_NODE_URL}" node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --pxe --bot env: - - name: K8S_POD_UID - valueFrom: - fieldRef: - fieldPath: metadata.uid - - name: K8S_POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: K8S_NAMESPACE_NAME - valueFrom: - fieldRef: - fieldPath: metadata.namespace + {{- include "aztec-network.otelEnvVars" . | nindent 12 }} - name: AZTEC_PORT value: "{{ .Values.bot.service.nodePort }}" - name: LOG_JSON diff --git a/spartan/aztec-network/templates/validator.yaml b/spartan/aztec-network/templates/validator.yaml index 8e06f66ded9a..cc62e12f6b32 100644 --- a/spartan/aztec-network/templates/validator.yaml +++ b/spartan/aztec-network/templates/validator.yaml @@ -43,7 +43,6 @@ spec: terminationGracePeriodSeconds: 5 # default is 30 - speed up initcontainer termination initContainers: {{- include "aztec-network.combinedAllSetupContainer" . | nindent 8 }} - {{- include "aztec-network.otelResourceSetupContainer" . | nindent 8 }} # Get the private key from the mnemonic - based on the pod replica index - name: get-private-key @@ -78,11 +77,11 @@ spec: - "/bin/bash" - "-c" - | + source /scripts/setup-otel-resource.sh && \ source /shared/contracts/contracts.env && \ source /shared/config/p2p-addresses && \ source /shared/config/service-addresses && \ source /shared/config/keys.env && \ - source /shared/config/otel-resource && \ env && \ node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --node --archiver --sequencer startupProbe: @@ -102,6 +101,8 @@ spec: timeoutSeconds: 30 failureThreshold: 3 volumeMounts: + - name: scripts + mountPath: /scripts - name: contracts-env mountPath: /shared/contracts - name: config @@ -109,22 +110,7 @@ spec: - name: validator-data mountPath: {{ .Values.validator.dataDir }} env: - - name: K8S_POD_UID - valueFrom: - fieldRef: - fieldPath: metadata.uid - - name: K8S_POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - - name: K8S_NAMESPACE_NAME - valueFrom: - fieldRef: - fieldPath: metadata.namespace + {{- include "aztec-network.otelEnvVars" . | nindent 12 }} - name: NODE_OPTIONS value: "--max-old-space-size={{ .Values.validator.maxOldSpaceSize}}" - name: AZTEC_PORT @@ -181,10 +167,6 @@ spec: value: "{{ .Values.storage.dataStoreMapSize }}" - name: WS_DB_MAP_SIZE_KB value: "{{ .Values.storage.worldStateMapSize }}" - - name: USE_GCLOUD_LOGGING - value: "{{ .Values.telemetry.useGcloudLogging }}" - - name: OTEL_EXCLUDE_METRICS - value: "{{ .Values.telemetry.excludeMetrics }}" - name: TEST_ACCOUNTS value: "{{ .Values.aztec.testAccounts }}" - name: P2P_BOOTSTRAP_NODES_AS_FULL_PEERS