From fa292f3ffc27bc87ae76026befb7f44dfe31cb98 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Wed, 26 Jun 2024 20:07:26 +0100 Subject: [PATCH 01/27] add arabica-11 --- .idea/.gitignore | 3 + .idea/helm-charts.iml | 9 +++ .idea/misc.xml | 6 ++ .idea/modules.xml | 8 +++ .idea/vcs.xml | 6 ++ charts/celestia-node/templates/service.yaml | 17 +++++ .../celestia-node/templates/statefulset.yaml | 4 ++ examples/celestia-app/arabica.yaml | 58 +++++++++++++++++ examples/celestia-node/arabica.yaml | 65 +++++++++++++++++++ 9 files changed, 176 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/helm-charts.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 examples/celestia-app/arabica.yaml create mode 100644 examples/celestia-node/arabica.yaml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/helm-charts.iml b/.idea/helm-charts.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/helm-charts.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..df7a980 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/charts/celestia-node/templates/service.yaml b/charts/celestia-node/templates/service.yaml index 5e72e6f..27f3778 100644 --- a/charts/celestia-node/templates/service.yaml +++ b/charts/celestia-node/templates/service.yaml @@ -45,6 +45,19 @@ spec: {{- end }} {{- end }} {{- if .Values.service.external.ports.rest }} + - name: p2p-udp + port: {{ .Values.service.external.ports.p2p }} + {{- if not (eq .Values.service.external.ports.p2p .Values.node.containerPorts.p2p) }} + targetPort: {{ .Values.node.containerPorts.p2p }} + {{- end }} + protocol: UDP + {{- if and (or (eq .Values.service.external.type "NodePort") (eq .Values.service.external.type "LoadBalancer")) (not (empty .Values.service.external.nodePorts.p2p)) }} + nodePort: {{ .Values.service.external.nodePorts.p2p }} + {{- else if eq .Values.service.external.type "ClusterIP" }} + nodePort: null + {{- end }} + {{- end }} + {{- if .Values.service.external.ports.rest }} - name: rest port: {{ .Values.service.external.ports.rest }} {{- if not (eq .Values.service.external.ports.rest .Values.node.containerPorts.rest) }} @@ -134,6 +147,10 @@ spec: targetPort: {{ .Values.node.containerPorts.p2p }} {{- end }} protocol: TCP + - name: p2p-udp + port: {{ .Values.service.internal.ports.p2p }} + targetPort: {{ .Values.node.containerPorts.p2p }} + protocol: UDP - name: rest port: {{ .Values.service.internal.ports.rest }} {{- if not (eq .Values.service.internal.ports.rest .Values.node.containerPorts.rest) }} diff --git a/charts/celestia-node/templates/statefulset.yaml b/charts/celestia-node/templates/statefulset.yaml index 311d2e5..f8eb62b 100644 --- a/charts/celestia-node/templates/statefulset.yaml +++ b/charts/celestia-node/templates/statefulset.yaml @@ -188,6 +188,10 @@ spec: ports: - name: p2p containerPort: {{ .Values.node.containerPorts.p2p }} + protocol: TCP + - name: p2p-udp + containerPort: {{ .Values.node.containerPorts.p2p }} + protocol: UDP - name: rest containerPort: {{ .Values.node.containerPorts.rest }} - name: rpc diff --git a/examples/celestia-app/arabica.yaml b/examples/celestia-app/arabica.yaml new file mode 100644 index 0000000..269e566 --- /dev/null +++ b/examples/celestia-app/arabica.yaml @@ -0,0 +1,58 @@ +commonLabels: + chain_id: arabica-11 + environment: arabica + network: consensus + type: full +persistence: + size: 1000Gi + dataSource: + apiGroup: snapshot.storage.k8s.io + kind: VolumeSnapshot + name: consensus-latest +app: + persistentVolumeClaimRetentionPolicy: + whenDeleted: Delete + whenScaled: Retain + otelAgent: + enabled: true + grafanaOtelSecret: + name: grafana-otel-token + resources: + requests: + cpu: 3 + memory: 12Gi + limits: + cpu: 6 + memory: 24Gi + livenessProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 3 + readinessProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 30 + startupProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 30 + settings: + genesisURL: "https://raw.githubusercontent.com/celestiaorg/networks/master/arabica-11/genesis.json" + secret: + name: keys-consensus-1 + config: + clienttoml: + chain_id: "arabica-11" + configtoml: + p2p: + seeds: "ee9f90974f85c59d3861fc7f7edb10894f6ac3c8@seed-mocha.pops.one:26656,258f523c96efde50d5fe0a9faeea8a3e83be22ca@seed.mocha-4.celestia.aviaone.com:20279,5d0bf034d6e6a8b5ee31a2f42f753f1107b3a00e@celestia-testnet-seed.itrocket.net:11656,7da0fb48d6ef0823bc9770c0c8068dd7c89ed4ee@celest-test-seed.theamsolutions.info:443" + persistent_peers: "34499b1ac473fbb03894c883178ecc83f0d6eaf6@64.227.18.169:26656,43e9da043318a4ea0141259c17fcb06ecff816af@rpc-1.celestia.nodes.guru:43656,f9e950870eccdb40e2386896d7b6a7687a103c99@rpc-2.celestia.nodes.guru:43656,daf2cecee2bd7f1b3bf94839f993f807c6b15fbf@celestia-testnet-peer.itrocket.net:11656" + instrumentation: + prometheus: true + tx_index: + indexer: "kv" + rpc: + laddr: "tcp://0.0.0.0:26657" + max_subscriptions_per_client: 1000 +diagnosticMode: + enabled: false diff --git a/examples/celestia-node/arabica.yaml b/examples/celestia-node/arabica.yaml new file mode 100644 index 0000000..1fb5ae4 --- /dev/null +++ b/examples/celestia-node/arabica.yaml @@ -0,0 +1,65 @@ +commonLabels: + chain_id: arabica-11 + environment: arabica + network: da + type: bridge +persistence: + size: 1000Gi + dataSource: + apiGroup: snapshot.storage.k8s.io + kind: VolumeSnapshot + name: da-latest +node: + persistentVolumeClaimRetentionPolicy: + whenDeleted: Delete + whenScaled: Retain + otelAgent: + enabled: true + grafanaOtelSecret: + name: grafana-otel-token + resources: + requests: + cpu: 3 + memory: 15Gi + limits: + cpu: 6 + memory: 24Gi + livenessProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 3 + readinessProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 30 + startupProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 60 + args: + - bridge + - start + - --p2p.network=arabica-11 + - --node.store=$(CELESTIA_HOME) + - --metrics + - --metrics.tls=false + - --p2p.metrics + settings: + address: "eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wMS0wMiAxMjo1NzoyMC4yNjk1Mjg2NTQgKzAwMDAgVVRDIG09KzAuMDQwNDkyNDk0IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibHBUb0pLUkFvS3NPbmRhaCJ9.SFen5RaM_7JverpZQN6VxtJ06XePE5VKjyzMyIPgqURSge-XbiLHqA.vZ4fuVFbrLODe8RM.EGKwO3uGEifnPanziF-AD4i6q_92IetSVAEz-7Grg75AJyFLV3Flt4CmfLxrJ2JHWJEKUQBNyIU81u7pd01iNzEECDy9b0jO3DYZ_5PRET8zrVPv6SKKZ_U7MLWmAe_eUajipnbqZ6NzG8UcG4qAt278ttZB1KQsKqocKlE39fSvo3iaZEzOKxS0N3tU1Xw2C3w6HgHJFk0QiP36NIHuKoP_4QJkeAomhJX-cNOYwvTd8qTFTk2-1TzLJ5DasLXsVXTUSUzCzYQhEfL8F0qFoGvuY1dWRD5BESw2Gg2oLH1w957Xd2UhRbo5ORz9POR7goEv9AZ_rWrjSV8HozUmgFwDQyM89M7oiNedEfGQoDjypzcUBcVkZLEMIdrFRpshjcpNEzy6-PZ9rSxouKb7wemG_sueX3V3gIPCTfFr6hB8_b2mV-kKeIXQRS5pJz_wXxeFHFKOHDjt3L8n5eqh.fy-zygX7rjTUqgX02sZKKg" + node_id: "92a499fc2ce7cabd2de89416aa0d0d07838f625d" + secret: + name: keys-da-bridge-1 + config: + configtoml: + Core: + IP: consensus-validator + RPC: + Enabled: true + Address: 0.0.0.0 + Gateway: + Enabled: true + Address: 0.0.0.0 + Node: + StartupTimeout: 2m +diagnosticMode: + enabled: false \ No newline at end of file From 91924ac566a50be84237a4399a28f64799128b34 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Wed, 26 Jun 2024 20:08:01 +0100 Subject: [PATCH 02/27] add arabica-11 --- .gitignore | 1 + .idea/.gitignore | 3 --- .idea/helm-charts.iml | 9 --------- .idea/misc.xml | 6 ------ .idea/modules.xml | 8 -------- .idea/vcs.xml | 6 ------ 6 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/helm-charts.iml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore index 448aae9..e87d76f 100644 --- a/.gitignore +++ b/.gitignore @@ -194,3 +194,4 @@ $RECYCLE.BIN/ # End of https://www.toptal.com/developers/gitignore/api/helm,linux,macos,windows,intellij +.idea \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/.idea/helm-charts.iml b/.idea/helm-charts.iml deleted file mode 100644 index d6ebd48..0000000 --- a/.idea/helm-charts.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 639900d..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index df7a980..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file From 7ee1072a0043485266a78bc703a5951f79514934 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Wed, 26 Jun 2024 20:10:24 +0100 Subject: [PATCH 03/27] add p2p-udp --- charts/celestia-node/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/celestia-node/templates/service.yaml b/charts/celestia-node/templates/service.yaml index 27f3778..6a17c7d 100644 --- a/charts/celestia-node/templates/service.yaml +++ b/charts/celestia-node/templates/service.yaml @@ -44,7 +44,7 @@ spec: nodePort: null {{- end }} {{- end }} - {{- if .Values.service.external.ports.rest }} + {{- if .Values.service.external.ports.p2p }} - name: p2p-udp port: {{ .Values.service.external.ports.p2p }} {{- if not (eq .Values.service.external.ports.p2p .Values.node.containerPorts.p2p) }} From 739b18ded55eecb0611b8829ca499e97612382a7 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Wed, 26 Jun 2024 20:57:30 +0100 Subject: [PATCH 04/27] bump celestia-node version --- charts/celestia-node/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/celestia-node/Chart.yaml b/charts/celestia-node/Chart.yaml index 049e16c..fc8246f 100644 --- a/charts/celestia-node/Chart.yaml +++ b/charts/celestia-node/Chart.yaml @@ -21,4 +21,4 @@ maintainers: name: celestia-node sources: - https://github.com/celestiaorg/celestia-node -version: 0.1.0 +version: 0.1.1 \ No newline at end of file From 0e8093a19e09af184bf50af1c054d1e38fc6500b Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Thu, 27 Jun 2024 10:52:30 +0100 Subject: [PATCH 05/27] add readiness probe logic based on node type --- charts/celestia-node/Chart.yaml | 2 +- .../celestia-node/templates/statefulset.yaml | 10 ++- charts/celestia-node/values.yaml | 8 ++- examples/celestia-node/arabica-bridge.yaml | 66 +++++++++++++++++++ .../{arabica.yaml => arabica-full.yaml} | 7 +- 5 files changed, 86 insertions(+), 7 deletions(-) create mode 100644 examples/celestia-node/arabica-bridge.yaml rename examples/celestia-node/{arabica.yaml => arabica-full.yaml} (95%) diff --git a/charts/celestia-node/Chart.yaml b/charts/celestia-node/Chart.yaml index fc8246f..1052e9a 100644 --- a/charts/celestia-node/Chart.yaml +++ b/charts/celestia-node/Chart.yaml @@ -21,4 +21,4 @@ maintainers: name: celestia-node sources: - https://github.com/celestiaorg/celestia-node -version: 0.1.1 \ No newline at end of file +version: 0.1.0 \ No newline at end of file diff --git a/charts/celestia-node/templates/statefulset.yaml b/charts/celestia-node/templates/statefulset.yaml index f8eb62b..f570810 100644 --- a/charts/celestia-node/templates/statefulset.yaml +++ b/charts/celestia-node/templates/statefulset.yaml @@ -209,18 +209,24 @@ spec: port: rpc {{- end }} {{- if .Values.node.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.node.customReadinessProbe "context" $) | nindent 12 }} + readinessProbe: { { - include "common.tplvalues.render" (dict "value" .Values.node.customReadinessProbe "context" $) | nindent 12 } } {{- else if .Values.node.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.node.readinessProbe "enabled") "context" $) | nindent 12 }} + {{- if or (eq .Values.node.nodeType "bridge") (eq .Values.node.nodeType "full") }} + readinessProbe: exec: command: - sh - '-c' - > AUTH_TOKEN=$(celestia bridge auth read --node.store=/home/celestia 2>/dev/null); + {{- if eq .Values.node.nodeType "bridge" }} + curl --max-time 0.5 -s -X POST -H "Content-type: application/json" -H "Accept: application/json" -H "Authorization: Bearer $AUTH_TOKEN" -d '{"id":1,"jsonrpc":"2.0","method":"header.SyncWait","params":[]}' "http://localhost:26658"; + {{- else if eq .Values.node.nodeType "full" }} curl --max-time 0.5 -s -X POST -H "Content-type: application/json" -H "Accept: application/json" -H "Authorization: Bearer $AUTH_TOKEN" -d '{"id":1,"jsonrpc":"2.0","method":"das.WaitCatchUp","params":[]}' "http://localhost:26658"; + {{- end }} if [ "$?" -eq 0 ]; then exit 0; else echo "Catching up"; exit 1; fi {{- end }} + {{- end }} {{- if .Values.node.customStartupProbe }} startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.node.customStartupProbe "context" $) | nindent 12 }} {{- else if .Values.node.startupProbe.enabled }} diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index ae77b55..a3cdd73 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -74,6 +74,12 @@ diagnosticMode: ## %%MAIN_CONTAINER/POD_DESCRIPTION%% ## node: + ## Select from: bridge, full, light + ## Valid values: + ## - bridge + ## - full + ## - light: + nodeType: bridge ## Celestia celestia-node image ## ref: https://github.com/celestiaorg/celestia-node/pkgs/container/celestia-node/versions?filters%5Bversion_type%5D=tagged ## @param node.image.registry [default: REGISTRY_NAME] celestia-node image registry @@ -368,7 +374,7 @@ node: ## readinessProbe: # -- enable readiness probe on node containers, false by default - enabled: false + enabled: true # -- initial delay seconds for readinessProbe, 0 by default initialDelaySeconds: 0 # -- period seconds for readinessProbe, 10 by default diff --git a/examples/celestia-node/arabica-bridge.yaml b/examples/celestia-node/arabica-bridge.yaml new file mode 100644 index 0000000..b35dbb2 --- /dev/null +++ b/examples/celestia-node/arabica-bridge.yaml @@ -0,0 +1,66 @@ +commonLabels: + chain_id: arabica-11 + environment: arabica + network: da + type: bridge # check +persistence: + size: 1000Gi + dataSource: + apiGroup: snapshot.storage.k8s.io + kind: VolumeSnapshot + name: da-latest +node: + type: bridge # check + persistentVolumeClaimRetentionPolicy: + whenDeleted: Delete + whenScaled: Retain + otelAgent: + enabled: true + grafanaOtelSecret: + name: grafana-otel-token + resources: + requests: + cpu: 3 + memory: 15Gi + limits: + cpu: 6 + memory: 24Gi + livenessProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 3 + readinessProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 30 + startupProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 60 + args: + - bridge # check + - start + - --p2p.network=arabica-11 + - --node.store=$(CELESTIA_HOME) + - --metrics + - --metrics.tls=false + - --p2p.metrics + settings: + address: "eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wMS0wMiAxMjo1NzoyMC4yNjk1Mjg2NTQgKzAwMDAgVVRDIG09KzAuMDQwNDkyNDk0IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibHBUb0pLUkFvS3NPbmRhaCJ9.SFen5RaM_7JverpZQN6VxtJ06XePE5VKjyzMyIPgqURSge-XbiLHqA.vZ4fuVFbrLODe8RM.EGKwO3uGEifnPanziF-AD4i6q_92IetSVAEz-7Grg75AJyFLV3Flt4CmfLxrJ2JHWJEKUQBNyIU81u7pd01iNzEECDy9b0jO3DYZ_5PRET8zrVPv6SKKZ_U7MLWmAe_eUajipnbqZ6NzG8UcG4qAt278ttZB1KQsKqocKlE39fSvo3iaZEzOKxS0N3tU1Xw2C3w6HgHJFk0QiP36NIHuKoP_4QJkeAomhJX-cNOYwvTd8qTFTk2-1TzLJ5DasLXsVXTUSUzCzYQhEfL8F0qFoGvuY1dWRD5BESw2Gg2oLH1w957Xd2UhRbo5ORz9POR7goEv9AZ_rWrjSV8HozUmgFwDQyM89M7oiNedEfGQoDjypzcUBcVkZLEMIdrFRpshjcpNEzy6-PZ9rSxouKb7wemG_sueX3V3gIPCTfFr6hB8_b2mV-kKeIXQRS5pJz_wXxeFHFKOHDjt3L8n5eqh.fy-zygX7rjTUqgX02sZKKg" + node_id: "92a499fc2ce7cabd2de89416aa0d0d07838f625d" + secret: + name: keys-da-bridge-1 + config: + configtoml: + Core: + IP: consensus-validator-1 + RPC: + Enabled: true + Address: 0.0.0.0 + Gateway: + Enabled: true + Address: 0.0.0.0 + Node: + StartupTimeout: 2m +diagnosticMode: + enabled: false \ No newline at end of file diff --git a/examples/celestia-node/arabica.yaml b/examples/celestia-node/arabica-full.yaml similarity index 95% rename from examples/celestia-node/arabica.yaml rename to examples/celestia-node/arabica-full.yaml index 1fb5ae4..f1379f8 100644 --- a/examples/celestia-node/arabica.yaml +++ b/examples/celestia-node/arabica-full.yaml @@ -2,7 +2,7 @@ commonLabels: chain_id: arabica-11 environment: arabica network: da - type: bridge + type: full # check persistence: size: 1000Gi dataSource: @@ -10,6 +10,7 @@ persistence: kind: VolumeSnapshot name: da-latest node: + type: full # check persistentVolumeClaimRetentionPolicy: whenDeleted: Delete whenScaled: Retain @@ -37,7 +38,7 @@ node: periodSeconds: 10 failureThreshold: 60 args: - - bridge + - full # check - start - --p2p.network=arabica-11 - --node.store=$(CELESTIA_HOME) @@ -52,7 +53,7 @@ node: config: configtoml: Core: - IP: consensus-validator + IP: consensus-validator-1 RPC: Enabled: true Address: 0.0.0.0 From 7f8eab24715e01fe5a6c15c91be6972efd033d42 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:00:05 +0100 Subject: [PATCH 06/27] fix arabica examples for bridge and full --- examples/celestia-node/arabica-bridge.yaml | 2 +- examples/celestia-node/arabica-full.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/celestia-node/arabica-bridge.yaml b/examples/celestia-node/arabica-bridge.yaml index b35dbb2..9672e63 100644 --- a/examples/celestia-node/arabica-bridge.yaml +++ b/examples/celestia-node/arabica-bridge.yaml @@ -10,7 +10,7 @@ persistence: kind: VolumeSnapshot name: da-latest node: - type: bridge # check + nodeType: bridge # check persistentVolumeClaimRetentionPolicy: whenDeleted: Delete whenScaled: Retain diff --git a/examples/celestia-node/arabica-full.yaml b/examples/celestia-node/arabica-full.yaml index f1379f8..1d98167 100644 --- a/examples/celestia-node/arabica-full.yaml +++ b/examples/celestia-node/arabica-full.yaml @@ -10,7 +10,7 @@ persistence: kind: VolumeSnapshot name: da-latest node: - type: full # check + nodeType: full # check persistentVolumeClaimRetentionPolicy: whenDeleted: Delete whenScaled: Retain From 08e5968a1d1583f48153ae46add2dd64b89985d4 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:25:46 +0100 Subject: [PATCH 07/27] remove udp from PR --- charts/celestia-node/templates/service.yaml | 21 ++----------------- .../celestia-node/templates/statefulset.yaml | 4 ---- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/charts/celestia-node/templates/service.yaml b/charts/celestia-node/templates/service.yaml index 6a17c7d..cde6423 100644 --- a/charts/celestia-node/templates/service.yaml +++ b/charts/celestia-node/templates/service.yaml @@ -44,19 +44,6 @@ spec: nodePort: null {{- end }} {{- end }} - {{- if .Values.service.external.ports.p2p }} - - name: p2p-udp - port: {{ .Values.service.external.ports.p2p }} - {{- if not (eq .Values.service.external.ports.p2p .Values.node.containerPorts.p2p) }} - targetPort: {{ .Values.node.containerPorts.p2p }} - {{- end }} - protocol: UDP - {{- if and (or (eq .Values.service.external.type "NodePort") (eq .Values.service.external.type "LoadBalancer")) (not (empty .Values.service.external.nodePorts.p2p)) }} - nodePort: {{ .Values.service.external.nodePorts.p2p }} - {{- else if eq .Values.service.external.type "ClusterIP" }} - nodePort: null - {{- end }} - {{- end }} {{- if .Values.service.external.ports.rest }} - name: rest port: {{ .Values.service.external.ports.rest }} @@ -116,7 +103,7 @@ spec: selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: node --- -{{- end }} + {{- end }} apiVersion: v1 kind: Service @@ -147,10 +134,6 @@ spec: targetPort: {{ .Values.node.containerPorts.p2p }} {{- end }} protocol: TCP - - name: p2p-udp - port: {{ .Values.service.internal.ports.p2p }} - targetPort: {{ .Values.node.containerPorts.p2p }} - protocol: UDP - name: rest port: {{ .Values.service.internal.ports.rest }} {{- if not (eq .Values.service.internal.ports.rest .Values.node.containerPorts.rest) }} @@ -180,4 +163,4 @@ spec: {{- end }} {{- $podLabels := include "common.tplvalues.merge" (dict "values" (list .Values.node.podLabels .Values.commonLabels) "context" .) | fromYaml }} selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} - app.kubernetes.io/component: node + app.kubernetes.io/component: node \ No newline at end of file diff --git a/charts/celestia-node/templates/statefulset.yaml b/charts/celestia-node/templates/statefulset.yaml index f570810..e8485ad 100644 --- a/charts/celestia-node/templates/statefulset.yaml +++ b/charts/celestia-node/templates/statefulset.yaml @@ -188,10 +188,6 @@ spec: ports: - name: p2p containerPort: {{ .Values.node.containerPorts.p2p }} - protocol: TCP - - name: p2p-udp - containerPort: {{ .Values.node.containerPorts.p2p }} - protocol: UDP - name: rest containerPort: {{ .Values.node.containerPorts.rest }} - name: rpc From b25ea9c430f49f9a2466800f7c730cc07dbfecfa Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:28:51 +0100 Subject: [PATCH 08/27] remove udp from PR --- charts/celestia-node/templates/statefulset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/celestia-node/templates/statefulset.yaml b/charts/celestia-node/templates/statefulset.yaml index e8485ad..9a6b291 100644 --- a/charts/celestia-node/templates/statefulset.yaml +++ b/charts/celestia-node/templates/statefulset.yaml @@ -205,7 +205,7 @@ spec: port: rpc {{- end }} {{- if .Values.node.customReadinessProbe }} - readinessProbe: { { - include "common.tplvalues.render" (dict "value" .Values.node.customReadinessProbe "context" $) | nindent 12 } } + readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.node.customReadinessProbe "context" $) | nindent 12 }} {{- else if .Values.node.readinessProbe.enabled }} {{- if or (eq .Values.node.nodeType "bridge") (eq .Values.node.nodeType "full") }} readinessProbe: From 3670c714e02f5f61e2331a19580e6f53ab3143da Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:23:09 +0100 Subject: [PATCH 09/27] add change requests --- charts/celestia-node/templates/NOTES.txt | 1 + charts/celestia-node/templates/_helpers.tpl | 20 ++++-- .../celestia-node/templates/statefulset.yaml | 6 +- charts/celestia-node/values.yaml | 12 ++-- examples/celestia-node/arabica-bridge.yaml | 13 ++-- examples/celestia-node/arabica-full.yaml | 6 +- examples/celestia-node/arabica-light.yaml | 67 +++++++++++++++++++ 7 files changed, 102 insertions(+), 23 deletions(-) create mode 100644 examples/celestia-node/arabica-light.yaml diff --git a/charts/celestia-node/templates/NOTES.txt b/charts/celestia-node/templates/NOTES.txt index 153ac35..8c9c171 100644 --- a/charts/celestia-node/templates/NOTES.txt +++ b/charts/celestia-node/templates/NOTES.txt @@ -29,3 +29,4 @@ In order to replicate the container startup scripts execute this command: {{- end }} {{- include "common.warnings.rollingTag" .Values.node.image }} +{{- include "node.validateValues" . }} diff --git a/charts/celestia-node/templates/_helpers.tpl b/charts/celestia-node/templates/_helpers.tpl index 9cac366..8e43fa2 100644 --- a/charts/celestia-node/templates/_helpers.tpl +++ b/charts/celestia-node/templates/_helpers.tpl @@ -30,7 +30,6 @@ Create the name of the service account to use {{- end -}} {{- end -}} - {{/* Return the proper image name for the otel agent */}} @@ -38,19 +37,30 @@ Return the proper image name for the otel agent {{- include "common.images.image" (dict "imageRoot" .Values.node.otelAgent.image "global" .Values.global) -}} {{- end -}} +{{/* +Validate the node.settings.nodeType value. +*/}} +{{- define "node.validateValues.nodeType" -}} +{{- if not (hasKey .Values.node.settings "nodeType") -}} +Node type is not set. Must be one of 'bridge', 'full', or 'light'. +{{- else if and (ne .Values.node.settings.nodeType "bridge") (ne .Values.node.settings.nodeType "full") (ne .Values.node.settings.nodeType "light") -}} +Invalid node type: {{ .Values.node.settings.nodeType }}. Must be one of 'bridge', 'full', or 'light'. +{{- end -}} +{{- end -}} + # TODO: add validations for values # Remember to add the validation message to NOTES.txt at the end ({{- include "node.validateValues" . }}) {{/* -Compile all warnings into a single message. +{{/* +Compile all warnings into a single message and fail the deployment if there are any. */}} {{- define "node.validateValues" -}} {{- $messages := list -}} -{{- $messages := append $messages (include "node.validateValues.foo" .) -}} -{{- $messages := append $messages (include "node.validateValues.bar" .) -}} +{{- $messages := append $messages (include "node.validateValues.nodeType" .) -}} {{- $messages := without $messages "" -}} {{- $message := join "\n" $messages -}} {{- if $message -}} -{{- printf "\nVALUES VALIDATION:\n%s" $message -}} +{{- fail (printf "\nVALUES VALIDATION:\n%s" $message) -}} {{- end -}} {{- end -}} diff --git a/charts/celestia-node/templates/statefulset.yaml b/charts/celestia-node/templates/statefulset.yaml index 9a6b291..9726d0c 100644 --- a/charts/celestia-node/templates/statefulset.yaml +++ b/charts/celestia-node/templates/statefulset.yaml @@ -207,7 +207,7 @@ spec: {{- if .Values.node.customReadinessProbe }} readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.node.customReadinessProbe "context" $) | nindent 12 }} {{- else if .Values.node.readinessProbe.enabled }} - {{- if or (eq .Values.node.nodeType "bridge") (eq .Values.node.nodeType "full") }} + {{- if or (eq .Values.node.settings.nodeType "bridge") (eq .Values.node.settings.nodeType "full") (eq .Values.node.settings.nodeType "light") }} readinessProbe: exec: command: @@ -215,9 +215,9 @@ spec: - '-c' - > AUTH_TOKEN=$(celestia bridge auth read --node.store=/home/celestia 2>/dev/null); - {{- if eq .Values.node.nodeType "bridge" }} + {{- if eq .Values.node.settings.nodeType "bridge" }} curl --max-time 0.5 -s -X POST -H "Content-type: application/json" -H "Accept: application/json" -H "Authorization: Bearer $AUTH_TOKEN" -d '{"id":1,"jsonrpc":"2.0","method":"header.SyncWait","params":[]}' "http://localhost:26658"; - {{- else if eq .Values.node.nodeType "full" }} + {{- else if or (eq .Values.node.settings.nodeType "full") (eq .Values.node.settings.nodeType "light") }} curl --max-time 0.5 -s -X POST -H "Content-type: application/json" -H "Accept: application/json" -H "Authorization: Bearer $AUTH_TOKEN" -d '{"id":1,"jsonrpc":"2.0","method":"das.WaitCatchUp","params":[]}' "http://localhost:26658"; {{- end }} if [ "$?" -eq 0 ]; then exit 0; else echo "Catching up"; exit 1; fi diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index a3cdd73..67e3b0f 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -74,12 +74,6 @@ diagnosticMode: ## %%MAIN_CONTAINER/POD_DESCRIPTION%% ## node: - ## Select from: bridge, full, light - ## Valid values: - ## - bridge - ## - full - ## - light: - nodeType: bridge ## Celestia celestia-node image ## ref: https://github.com/celestiaorg/celestia-node/pkgs/container/celestia-node/versions?filters%5Bversion_type%5D=tagged ## @param node.image.registry [default: REGISTRY_NAME] celestia-node image registry @@ -114,6 +108,12 @@ node: pullSecrets: [] ## @param node.settings Settings for the celestia-node settings: + ## Select from: bridge, full, light + ## Valid values: + ## - bridge + ## - full + ## - light: + nodeType: bridge ## @param node.settings.home Home directory for the celestia-node ## # -- home directory for the celestia-node, defaults to /home/celestia diff --git a/examples/celestia-node/arabica-bridge.yaml b/examples/celestia-node/arabica-bridge.yaml index 9672e63..c2121f4 100644 --- a/examples/celestia-node/arabica-bridge.yaml +++ b/examples/celestia-node/arabica-bridge.yaml @@ -1,8 +1,9 @@ -commonLabels: +commonLabels: &commonLabels chain_id: arabica-11 environment: arabica network: da - type: bridge # check + type: &nodeType bridge # check + secretName: &secretName keys-da-bridge-1 # check persistence: size: 1000Gi dataSource: @@ -10,7 +11,6 @@ persistence: kind: VolumeSnapshot name: da-latest node: - nodeType: bridge # check persistentVolumeClaimRetentionPolicy: whenDeleted: Delete whenScaled: Retain @@ -38,7 +38,7 @@ node: periodSeconds: 10 failureThreshold: 60 args: - - bridge # check + - *nodeType - start - --p2p.network=arabica-11 - --node.store=$(CELESTIA_HOME) @@ -46,14 +46,15 @@ node: - --metrics.tls=false - --p2p.metrics settings: + nodeType: *nodeType address: "eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wMS0wMiAxMjo1NzoyMC4yNjk1Mjg2NTQgKzAwMDAgVVRDIG09KzAuMDQwNDkyNDk0IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibHBUb0pLUkFvS3NPbmRhaCJ9.SFen5RaM_7JverpZQN6VxtJ06XePE5VKjyzMyIPgqURSge-XbiLHqA.vZ4fuVFbrLODe8RM.EGKwO3uGEifnPanziF-AD4i6q_92IetSVAEz-7Grg75AJyFLV3Flt4CmfLxrJ2JHWJEKUQBNyIU81u7pd01iNzEECDy9b0jO3DYZ_5PRET8zrVPv6SKKZ_U7MLWmAe_eUajipnbqZ6NzG8UcG4qAt278ttZB1KQsKqocKlE39fSvo3iaZEzOKxS0N3tU1Xw2C3w6HgHJFk0QiP36NIHuKoP_4QJkeAomhJX-cNOYwvTd8qTFTk2-1TzLJ5DasLXsVXTUSUzCzYQhEfL8F0qFoGvuY1dWRD5BESw2Gg2oLH1w957Xd2UhRbo5ORz9POR7goEv9AZ_rWrjSV8HozUmgFwDQyM89M7oiNedEfGQoDjypzcUBcVkZLEMIdrFRpshjcpNEzy6-PZ9rSxouKb7wemG_sueX3V3gIPCTfFr6hB8_b2mV-kKeIXQRS5pJz_wXxeFHFKOHDjt3L8n5eqh.fy-zygX7rjTUqgX02sZKKg" node_id: "92a499fc2ce7cabd2de89416aa0d0d07838f625d" secret: - name: keys-da-bridge-1 + name: *secretName config: configtoml: Core: - IP: consensus-validator-1 + IP: consensus-validator RPC: Enabled: true Address: 0.0.0.0 diff --git a/examples/celestia-node/arabica-full.yaml b/examples/celestia-node/arabica-full.yaml index 1d98167..2f4199c 100644 --- a/examples/celestia-node/arabica-full.yaml +++ b/examples/celestia-node/arabica-full.yaml @@ -2,7 +2,7 @@ commonLabels: chain_id: arabica-11 environment: arabica network: da - type: full # check + type: &nodeType full # check persistence: size: 1000Gi dataSource: @@ -10,7 +10,6 @@ persistence: kind: VolumeSnapshot name: da-latest node: - nodeType: full # check persistentVolumeClaimRetentionPolicy: whenDeleted: Delete whenScaled: Retain @@ -46,6 +45,7 @@ node: - --metrics.tls=false - --p2p.metrics settings: + nodeType: full # check address: "eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wMS0wMiAxMjo1NzoyMC4yNjk1Mjg2NTQgKzAwMDAgVVRDIG09KzAuMDQwNDkyNDk0IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibHBUb0pLUkFvS3NPbmRhaCJ9.SFen5RaM_7JverpZQN6VxtJ06XePE5VKjyzMyIPgqURSge-XbiLHqA.vZ4fuVFbrLODe8RM.EGKwO3uGEifnPanziF-AD4i6q_92IetSVAEz-7Grg75AJyFLV3Flt4CmfLxrJ2JHWJEKUQBNyIU81u7pd01iNzEECDy9b0jO3DYZ_5PRET8zrVPv6SKKZ_U7MLWmAe_eUajipnbqZ6NzG8UcG4qAt278ttZB1KQsKqocKlE39fSvo3iaZEzOKxS0N3tU1Xw2C3w6HgHJFk0QiP36NIHuKoP_4QJkeAomhJX-cNOYwvTd8qTFTk2-1TzLJ5DasLXsVXTUSUzCzYQhEfL8F0qFoGvuY1dWRD5BESw2Gg2oLH1w957Xd2UhRbo5ORz9POR7goEv9AZ_rWrjSV8HozUmgFwDQyM89M7oiNedEfGQoDjypzcUBcVkZLEMIdrFRpshjcpNEzy6-PZ9rSxouKb7wemG_sueX3V3gIPCTfFr6hB8_b2mV-kKeIXQRS5pJz_wXxeFHFKOHDjt3L8n5eqh.fy-zygX7rjTUqgX02sZKKg" node_id: "92a499fc2ce7cabd2de89416aa0d0d07838f625d" secret: @@ -53,7 +53,7 @@ node: config: configtoml: Core: - IP: consensus-validator-1 + IP: consensus-validator RPC: Enabled: true Address: 0.0.0.0 diff --git a/examples/celestia-node/arabica-light.yaml b/examples/celestia-node/arabica-light.yaml new file mode 100644 index 0000000..18c2ba3 --- /dev/null +++ b/examples/celestia-node/arabica-light.yaml @@ -0,0 +1,67 @@ +commonLabels: &commonLabels + chain_id: arabica-11 + environment: arabica + network: da + type: &nodeType light # check + secretName: &secretName keys-da-bridge-1 # check +persistence: + size: 1000Gi + dataSource: + apiGroup: snapshot.storage.k8s.io + kind: VolumeSnapshot + name: da-latest +node: + persistentVolumeClaimRetentionPolicy: + whenDeleted: Delete + whenScaled: Retain + otelAgent: + enabled: true + grafanaOtelSecret: + name: grafana-otel-token + resources: + requests: + cpu: 3 + memory: 15Gi + limits: + cpu: 6 + memory: 24Gi + livenessProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 3 + readinessProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 30 + startupProbe: + enabled: true + periodSeconds: 10 + failureThreshold: 60 + args: + - *nodeType + - start + - --p2p.network=arabica-11 + - --node.store=$(CELESTIA_HOME) + - --metrics + - --metrics.tls=false + - --p2p.metrics + settings: + nodeType: *nodeType + address: "eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wMS0wMiAxMjo1NzoyMC4yNjk1Mjg2NTQgKzAwMDAgVVRDIG09KzAuMDQwNDkyNDk0IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibHBUb0pLUkFvS3NPbmRhaCJ9.SFen5RaM_7JverpZQN6VxtJ06XePE5VKjyzMyIPgqURSge-XbiLHqA.vZ4fuVFbrLODe8RM.EGKwO3uGEifnPanziF-AD4i6q_92IetSVAEz-7Grg75AJyFLV3Flt4CmfLxrJ2JHWJEKUQBNyIU81u7pd01iNzEECDy9b0jO3DYZ_5PRET8zrVPv6SKKZ_U7MLWmAe_eUajipnbqZ6NzG8UcG4qAt278ttZB1KQsKqocKlE39fSvo3iaZEzOKxS0N3tU1Xw2C3w6HgHJFk0QiP36NIHuKoP_4QJkeAomhJX-cNOYwvTd8qTFTk2-1TzLJ5DasLXsVXTUSUzCzYQhEfL8F0qFoGvuY1dWRD5BESw2Gg2oLH1w957Xd2UhRbo5ORz9POR7goEv9AZ_rWrjSV8HozUmgFwDQyM89M7oiNedEfGQoDjypzcUBcVkZLEMIdrFRpshjcpNEzy6-PZ9rSxouKb7wemG_sueX3V3gIPCTfFr6hB8_b2mV-kKeIXQRS5pJz_wXxeFHFKOHDjt3L8n5eqh.fy-zygX7rjTUqgX02sZKKg" + node_id: "92a499fc2ce7cabd2de89416aa0d0d07838f625d" + secret: + name: *secretName + config: + configtoml: + Core: + IP: consensus-validator + RPC: + Enabled: true + Address: 0.0.0.0 + Gateway: + Enabled: true + Address: 0.0.0.0 + Node: + StartupTimeout: 2m +diagnosticMode: + enabled: false \ No newline at end of file From f2c4ba89e3adb709c2d9d6a15b96b85cf90fe3f4 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:24:45 +0100 Subject: [PATCH 10/27] add change requests --- charts/celestia-node/templates/service.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/celestia-node/templates/service.yaml b/charts/celestia-node/templates/service.yaml index cde6423..5e72e6f 100644 --- a/charts/celestia-node/templates/service.yaml +++ b/charts/celestia-node/templates/service.yaml @@ -103,7 +103,7 @@ spec: selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: node --- - {{- end }} +{{- end }} apiVersion: v1 kind: Service @@ -163,4 +163,4 @@ spec: {{- end }} {{- $podLabels := include "common.tplvalues.merge" (dict "values" (list .Values.node.podLabels .Values.commonLabels) "context" .) | fromYaml }} selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} - app.kubernetes.io/component: node \ No newline at end of file + app.kubernetes.io/component: node From fb3f221bd4b5ade13fd77e7da7f8786d4969737b Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:25:24 +0100 Subject: [PATCH 11/27] add change requests --- charts/celestia-node/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/celestia-node/Chart.yaml b/charts/celestia-node/Chart.yaml index 1052e9a..049e16c 100644 --- a/charts/celestia-node/Chart.yaml +++ b/charts/celestia-node/Chart.yaml @@ -21,4 +21,4 @@ maintainers: name: celestia-node sources: - https://github.com/celestiaorg/celestia-node -version: 0.1.0 \ No newline at end of file +version: 0.1.0 From 5bd7436645cb51eedcdf66eeeb83386a2469b1cb Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:25:52 +0100 Subject: [PATCH 12/27] add change requests --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e87d76f..25d881c 100644 --- a/.gitignore +++ b/.gitignore @@ -194,4 +194,4 @@ $RECYCLE.BIN/ # End of https://www.toptal.com/developers/gitignore/api/helm,linux,macos,windows,intellij -.idea \ No newline at end of file +.idea From c3ee6e9716eeb29e89be3cf2e7fbf431cfdb3462 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:57:20 +0100 Subject: [PATCH 13/27] add change requests --- examples/celestia-node/arabica-light.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/celestia-node/arabica-light.yaml b/examples/celestia-node/arabica-light.yaml index 18c2ba3..215327a 100644 --- a/examples/celestia-node/arabica-light.yaml +++ b/examples/celestia-node/arabica-light.yaml @@ -4,12 +4,6 @@ commonLabels: &commonLabels network: da type: &nodeType light # check secretName: &secretName keys-da-bridge-1 # check -persistence: - size: 1000Gi - dataSource: - apiGroup: snapshot.storage.k8s.io - kind: VolumeSnapshot - name: da-latest node: persistentVolumeClaimRetentionPolicy: whenDeleted: Delete From 155ac041c88b1b579df5595e6ee38f9389d5ac43 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 28 Jun 2024 11:07:32 +0100 Subject: [PATCH 14/27] add logic for nodeType validations, set ClusteIP for SVCs by default --- charts/celestia-node/templates/_helpers.tpl | 5 +- charts/celestia-node/values.yaml | 8 +-- examples/celestia-app/arabica.yaml | 58 --------------------- 3 files changed, 7 insertions(+), 64 deletions(-) delete mode 100644 examples/celestia-app/arabica.yaml diff --git a/charts/celestia-node/templates/_helpers.tpl b/charts/celestia-node/templates/_helpers.tpl index 8e43fa2..d3e77c1 100644 --- a/charts/celestia-node/templates/_helpers.tpl +++ b/charts/celestia-node/templates/_helpers.tpl @@ -38,20 +38,21 @@ Return the proper image name for the otel agent {{- end -}} {{/* -Validate the node.settings.nodeType value. +Validate the node.settings.nodeType value against the first argument in node.args. */}} {{- define "node.validateValues.nodeType" -}} {{- if not (hasKey .Values.node.settings "nodeType") -}} Node type is not set. Must be one of 'bridge', 'full', or 'light'. {{- else if and (ne .Values.node.settings.nodeType "bridge") (ne .Values.node.settings.nodeType "full") (ne .Values.node.settings.nodeType "light") -}} Invalid node type: {{ .Values.node.settings.nodeType }}. Must be one of 'bridge', 'full', or 'light'. +{{- else if not (eq .Values.node.settings.nodeType (first .Values.node.args)) -}} +The nodeType value ({{ .Values.node.settings.nodeType }}) does not match the first argument in args ({{ first .Values.node.args }}). {{- end -}} {{- end -}} # TODO: add validations for values # Remember to add the validation message to NOTES.txt at the end ({{- include "node.validateValues" . }}) {{/* -{{/* Compile all warnings into a single message and fail the deployment if there are any. */}} {{- define "node.validateValues" -}} diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index 67e3b0f..e1f4cde 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -729,9 +729,9 @@ service: prometheus: 8890 ## @param service.internal.clusterIP node internal service Cluster IP ## e.g.: - ## clusterIP: None + ## clusterIP: None # We use headless mode by default for stateful workloads. ## - clusterIP: "" + clusterIP: "None" ## @param service.internal.annotations Additional custom annotations for node internal service ## annotations: {} @@ -755,8 +755,8 @@ service: enabled: true ## @param service.external.type node external service type ## - # -- external service type, LoadBalancer by default - type: LoadBalancer + # -- external service type, ClusterIP by default + type: ClusterIP ## @param service.external.ports.p2p Node external service P2P port ## @param service.external.ports.rest Node external service REST port ## @param service.external.ports.rpc Node external service RPC port diff --git a/examples/celestia-app/arabica.yaml b/examples/celestia-app/arabica.yaml deleted file mode 100644 index 269e566..0000000 --- a/examples/celestia-app/arabica.yaml +++ /dev/null @@ -1,58 +0,0 @@ -commonLabels: - chain_id: arabica-11 - environment: arabica - network: consensus - type: full -persistence: - size: 1000Gi - dataSource: - apiGroup: snapshot.storage.k8s.io - kind: VolumeSnapshot - name: consensus-latest -app: - persistentVolumeClaimRetentionPolicy: - whenDeleted: Delete - whenScaled: Retain - otelAgent: - enabled: true - grafanaOtelSecret: - name: grafana-otel-token - resources: - requests: - cpu: 3 - memory: 12Gi - limits: - cpu: 6 - memory: 24Gi - livenessProbe: - enabled: true - periodSeconds: 10 - failureThreshold: 3 - readinessProbe: - enabled: true - periodSeconds: 10 - failureThreshold: 30 - startupProbe: - enabled: true - periodSeconds: 10 - failureThreshold: 30 - settings: - genesisURL: "https://raw.githubusercontent.com/celestiaorg/networks/master/arabica-11/genesis.json" - secret: - name: keys-consensus-1 - config: - clienttoml: - chain_id: "arabica-11" - configtoml: - p2p: - seeds: "ee9f90974f85c59d3861fc7f7edb10894f6ac3c8@seed-mocha.pops.one:26656,258f523c96efde50d5fe0a9faeea8a3e83be22ca@seed.mocha-4.celestia.aviaone.com:20279,5d0bf034d6e6a8b5ee31a2f42f753f1107b3a00e@celestia-testnet-seed.itrocket.net:11656,7da0fb48d6ef0823bc9770c0c8068dd7c89ed4ee@celest-test-seed.theamsolutions.info:443" - persistent_peers: "34499b1ac473fbb03894c883178ecc83f0d6eaf6@64.227.18.169:26656,43e9da043318a4ea0141259c17fcb06ecff816af@rpc-1.celestia.nodes.guru:43656,f9e950870eccdb40e2386896d7b6a7687a103c99@rpc-2.celestia.nodes.guru:43656,daf2cecee2bd7f1b3bf94839f993f807c6b15fbf@celestia-testnet-peer.itrocket.net:11656" - instrumentation: - prometheus: true - tx_index: - indexer: "kv" - rpc: - laddr: "tcp://0.0.0.0:26657" - max_subscriptions_per_client: 1000 -diagnosticMode: - enabled: false From 9304c1e0ca0b62cf33c912d2a239dee9c0b58769 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 28 Jun 2024 11:15:35 +0100 Subject: [PATCH 15/27] fix cluster ip for external service --- charts/celestia-node/values.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index e1f4cde..01d4e28 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -793,6 +793,13 @@ service: ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer ## loadBalancerIP: "" + ## @param service.internal.clusterIP node internal service Cluster IP + ## e.g.: + ## clusterIP: None # We use headless mode by default for stateful workloads. + ## + clusterIP: "None" + ## @param service.internal.annotations Additional custom annotations for node internal service + ## ## @param service.external.loadBalancerSourceRanges node external service Load Balancer sources ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service ## e.g: From 394dd1195245a1356f445ad017c4dc146bbd5ad9 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 28 Jun 2024 11:38:27 +0100 Subject: [PATCH 16/27] add svc headless examples --- examples/celestia-node/arabica-bridge.yaml | 6 ++++++ examples/celestia-node/arabica-full.yaml | 6 ++++++ examples/celestia-node/arabica-light.yaml | 8 ++++++++ 3 files changed, 20 insertions(+) diff --git a/examples/celestia-node/arabica-bridge.yaml b/examples/celestia-node/arabica-bridge.yaml index c2121f4..e52b898 100644 --- a/examples/celestia-node/arabica-bridge.yaml +++ b/examples/celestia-node/arabica-bridge.yaml @@ -4,6 +4,12 @@ commonLabels: &commonLabels network: da type: &nodeType bridge # check secretName: &secretName keys-da-bridge-1 # check +service: + external: + annotations: + external-dns.alpha.kubernetes.io/endpoints-type: "NodeExternalIP" + external-dns.alpha.kubernetes.io/hostname: "hc-da-bridge-1.celestia-arabica-11.com" + external-dns.alpha.kubernetes.io/ttl: "60" persistence: size: 1000Gi dataSource: diff --git a/examples/celestia-node/arabica-full.yaml b/examples/celestia-node/arabica-full.yaml index 2f4199c..db29562 100644 --- a/examples/celestia-node/arabica-full.yaml +++ b/examples/celestia-node/arabica-full.yaml @@ -3,6 +3,12 @@ commonLabels: environment: arabica network: da type: &nodeType full # check +service: + external: + annotations: + external-dns.alpha.kubernetes.io/endpoints-type: "NodeExternalIP" + external-dns.alpha.kubernetes.io/hostname: "hc-da-full-1.celestia-arabica-11.com" + external-dns.alpha.kubernetes.io/ttl: "60" persistence: size: 1000Gi dataSource: diff --git a/examples/celestia-node/arabica-light.yaml b/examples/celestia-node/arabica-light.yaml index 215327a..4549cc7 100644 --- a/examples/celestia-node/arabica-light.yaml +++ b/examples/celestia-node/arabica-light.yaml @@ -4,6 +4,14 @@ commonLabels: &commonLabels network: da type: &nodeType light # check secretName: &secretName keys-da-bridge-1 # check +service: + external: + annotations: + external-dns.alpha.kubernetes.io/endpoints-type: "NodeExternalIP" + external-dns.alpha.kubernetes.io/hostname: "hc-da-light-1.celestia-arabica-11.com" + external-dns.alpha.kubernetes.io/ttl: "60" +persistence: + size: 10Gi node: persistentVolumeClaimRetentionPolicy: whenDeleted: Delete From bb3cc7d8de06733386b9ea119ae25fd24e202772 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:20:04 +0100 Subject: [PATCH 17/27] add nodeType logic for args validation --- charts/celestia-node/templates/_helpers.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/celestia-node/templates/_helpers.tpl b/charts/celestia-node/templates/_helpers.tpl index d3e77c1..2110ce2 100644 --- a/charts/celestia-node/templates/_helpers.tpl +++ b/charts/celestia-node/templates/_helpers.tpl @@ -45,6 +45,8 @@ Validate the node.settings.nodeType value against the first argument in node.arg Node type is not set. Must be one of 'bridge', 'full', or 'light'. {{- else if and (ne .Values.node.settings.nodeType "bridge") (ne .Values.node.settings.nodeType "full") (ne .Values.node.settings.nodeType "light") -}} Invalid node type: {{ .Values.node.settings.nodeType }}. Must be one of 'bridge', 'full', or 'light'. +{{- else if not (hasKey .Values.node "args") -}} +Node args are not set. {{- else if not (eq .Values.node.settings.nodeType (first .Values.node.args)) -}} The nodeType value ({{ .Values.node.settings.nodeType }}) does not match the first argument in args ({{ first .Values.node.args }}). {{- end -}} @@ -64,4 +66,4 @@ Compile all warnings into a single message and fail the deployment if there are {{- if $message -}} {{- fail (printf "\nVALUES VALIDATION:\n%s" $message) -}} {{- end -}} -{{- end -}} +{{- end -}} \ No newline at end of file From 179ef76534c3cf85175d3c2e0656e158538e80c2 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:29:08 +0100 Subject: [PATCH 18/27] add nodeSelector for DA pool --- examples/celestia-node/arabica-bridge.yaml | 13 ++++++++----- examples/celestia-node/arabica-full.yaml | 5 ++++- examples/celestia-node/arabica-light.yaml | 3 +++ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/examples/celestia-node/arabica-bridge.yaml b/examples/celestia-node/arabica-bridge.yaml index e52b898..7c6a974 100644 --- a/examples/celestia-node/arabica-bridge.yaml +++ b/examples/celestia-node/arabica-bridge.yaml @@ -4,11 +4,12 @@ commonLabels: &commonLabels network: da type: &nodeType bridge # check secretName: &secretName keys-da-bridge-1 # check + pool: &pool pool-da-0 # check pool instance type to validate requests & limits service: external: annotations: external-dns.alpha.kubernetes.io/endpoints-type: "NodeExternalIP" - external-dns.alpha.kubernetes.io/hostname: "hc-da-bridge-1.celestia-arabica-11.com" + external-dns.alpha.kubernetes.io/hostname: "hct-da-bridge-1.celestia-arabica-11.com" external-dns.alpha.kubernetes.io/ttl: "60" persistence: size: 1000Gi @@ -17,6 +18,8 @@ persistence: kind: VolumeSnapshot name: da-latest node: + nodeSelector: + k8s.scaleway.com/pool-name: *pool persistentVolumeClaimRetentionPolicy: whenDeleted: Delete whenScaled: Retain @@ -26,11 +29,11 @@ node: name: grafana-otel-token resources: requests: - cpu: 3 - memory: 15Gi + cpu: 2 + memory: 4Gi limits: - cpu: 6 - memory: 24Gi + #cpu: 4 # not required since this pod should run on it's own dedicated node + memory: 10Gi livenessProbe: enabled: true periodSeconds: 10 diff --git a/examples/celestia-node/arabica-full.yaml b/examples/celestia-node/arabica-full.yaml index db29562..58f714a 100644 --- a/examples/celestia-node/arabica-full.yaml +++ b/examples/celestia-node/arabica-full.yaml @@ -3,6 +3,7 @@ commonLabels: environment: arabica network: da type: &nodeType full # check + pool: &pool pool-da-0 # check service: external: annotations: @@ -16,6 +17,8 @@ persistence: kind: VolumeSnapshot name: da-latest node: + nodeSelector: + k8s.scaleway.com/pool-name: *pool persistentVolumeClaimRetentionPolicy: whenDeleted: Delete whenScaled: Retain @@ -43,7 +46,7 @@ node: periodSeconds: 10 failureThreshold: 60 args: - - full # check + - *nodeType # check - start - --p2p.network=arabica-11 - --node.store=$(CELESTIA_HOME) diff --git a/examples/celestia-node/arabica-light.yaml b/examples/celestia-node/arabica-light.yaml index 4549cc7..7de3584 100644 --- a/examples/celestia-node/arabica-light.yaml +++ b/examples/celestia-node/arabica-light.yaml @@ -4,6 +4,7 @@ commonLabels: &commonLabels network: da type: &nodeType light # check secretName: &secretName keys-da-bridge-1 # check + pool: &pool pool-da-0 # check service: external: annotations: @@ -13,6 +14,8 @@ service: persistence: size: 10Gi node: + nodeSelector: + k8s.scaleway.com/pool-name: *pool persistentVolumeClaimRetentionPolicy: whenDeleted: Delete whenScaled: Retain From 70d22feb297da685c469cdae07c4565a354fa327 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:06:10 +0100 Subject: [PATCH 19/27] add Enabled for RPC in config.toml --- charts/celestia-node/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index 01d4e28..8b344ea 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -187,6 +187,7 @@ node: Address: localhost Port: "26658" SkipAuth: false + Enabled: false Gateway: Address: localhost Port: "26659" From 79d6e865deb055eb75bf7bc48c0e408a3a36c663 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:11:13 +0100 Subject: [PATCH 20/27] add Enabled for RPC in config.toml --- charts/celestia-node/templates/configmap.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/celestia-node/templates/configmap.yaml b/charts/celestia-node/templates/configmap.yaml index 4e1397c..ebcda09 100644 --- a/charts/celestia-node/templates/configmap.yaml +++ b/charts/celestia-node/templates/configmap.yaml @@ -35,6 +35,7 @@ data: Address = "{{ .Values.node.config.configtoml.RPC.Address }}" Port = "{{ .Values.node.config.configtoml.RPC.Port }}" SkipAuth = {{ .Values.node.config.configtoml.RPC.SkipAuth }} + Enabled = {{ .Values.node.config.configtoml.RPC.Enabled }} [Gateway] Address = "{{ .Values.node.config.configtoml.Gateway.Address }}" Port = "{{ .Values.node.config.configtoml.Gateway.Port }}" From 715e7782f972389a401eb6c7f82dae1fc8ff2b25 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:29:06 +0200 Subject: [PATCH 21/27] add hostPorts --- charts/celestia-node/templates/statefulset.yaml | 3 +++ examples/celestia-node/arabica-bridge.yaml | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/charts/celestia-node/templates/statefulset.yaml b/charts/celestia-node/templates/statefulset.yaml index 9726d0c..6142e6b 100644 --- a/charts/celestia-node/templates/statefulset.yaml +++ b/charts/celestia-node/templates/statefulset.yaml @@ -188,10 +188,13 @@ spec: ports: - name: p2p containerPort: {{ .Values.node.containerPorts.p2p }} + hostPort: {{ .Values.node.containerPorts.p2p }} - name: rest containerPort: {{ .Values.node.containerPorts.rest }} + hostPort: {{ .Values.node.containerPorts.rest }} - name: rpc containerPort: {{ .Values.node.containerPorts.rpc }} + hostPort: {{ .Values.node.containerPorts.rpc }} - name: profiling containerPort: {{ .Values.node.containerPorts.profiling }} - name: prometheus diff --git a/examples/celestia-node/arabica-bridge.yaml b/examples/celestia-node/arabica-bridge.yaml index 7c6a974..18b6fac 100644 --- a/examples/celestia-node/arabica-bridge.yaml +++ b/examples/celestia-node/arabica-bridge.yaml @@ -9,10 +9,10 @@ service: external: annotations: external-dns.alpha.kubernetes.io/endpoints-type: "NodeExternalIP" - external-dns.alpha.kubernetes.io/hostname: "hct-da-bridge-1.celestia-arabica-11.com" + external-dns.alpha.kubernetes.io/hostname: "hc-bridge.celestia-arabica-11.com" external-dns.alpha.kubernetes.io/ttl: "60" persistence: - size: 1000Gi + size: 750Gi dataSource: apiGroup: snapshot.storage.k8s.io kind: VolumeSnapshot @@ -73,4 +73,6 @@ node: Node: StartupTimeout: 2m diagnosticMode: + enabled: false +networkPolicy: enabled: false \ No newline at end of file From dee948c335302166fcf322389546a3df058ac970 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:31:34 +0200 Subject: [PATCH 22/27] remove cpu limits for node --- charts/celestia-node/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index 8b344ea..5ecc306 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -443,7 +443,7 @@ node: # -- limits for the node limits: # -- cpu limits for the node, 2 by default - cpu: 6 + #cpu: 6 # -- memory limits for the node, 8Gi by default memory: 16Gi ## Configure Pods Security Context From 29de6cb953b2840374e064d32c2f640f64755165 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:19:14 +0200 Subject: [PATCH 23/27] remove enabled value for rpc in config.toml --- charts/celestia-node/templates/configmap.yaml | 1 - charts/celestia-node/values.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/charts/celestia-node/templates/configmap.yaml b/charts/celestia-node/templates/configmap.yaml index ebcda09..4e1397c 100644 --- a/charts/celestia-node/templates/configmap.yaml +++ b/charts/celestia-node/templates/configmap.yaml @@ -35,7 +35,6 @@ data: Address = "{{ .Values.node.config.configtoml.RPC.Address }}" Port = "{{ .Values.node.config.configtoml.RPC.Port }}" SkipAuth = {{ .Values.node.config.configtoml.RPC.SkipAuth }} - Enabled = {{ .Values.node.config.configtoml.RPC.Enabled }} [Gateway] Address = "{{ .Values.node.config.configtoml.Gateway.Address }}" Port = "{{ .Values.node.config.configtoml.Gateway.Port }}" diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index 5ecc306..2891bab 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -187,7 +187,6 @@ node: Address: localhost Port: "26658" SkipAuth: false - Enabled: false Gateway: Address: localhost Port: "26659" From a5f968fa8c7888cb9b4021a074c40366225d593d Mon Sep 17 00:00:00 2001 From: tty47 <32740567+tty47@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:20:13 +0200 Subject: [PATCH 24/27] Update charts/celestia-node/templates/_helpers.tpl --- charts/celestia-node/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/celestia-node/templates/_helpers.tpl b/charts/celestia-node/templates/_helpers.tpl index 2110ce2..7bb166b 100644 --- a/charts/celestia-node/templates/_helpers.tpl +++ b/charts/celestia-node/templates/_helpers.tpl @@ -66,4 +66,4 @@ Compile all warnings into a single message and fail the deployment if there are {{- if $message -}} {{- fail (printf "\nVALUES VALIDATION:\n%s" $message) -}} {{- end -}} -{{- end -}} \ No newline at end of file +{{- end -}} From a1b0c15d39913af2d3cee2657a26720ecf55a843 Mon Sep 17 00:00:00 2001 From: tty47 <32740567+tty47@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:23:59 +0200 Subject: [PATCH 25/27] Update examples/celestia-node/arabica-bridge.yaml --- examples/celestia-node/arabica-bridge.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/celestia-node/arabica-bridge.yaml b/examples/celestia-node/arabica-bridge.yaml index 18b6fac..020a35c 100644 --- a/examples/celestia-node/arabica-bridge.yaml +++ b/examples/celestia-node/arabica-bridge.yaml @@ -75,4 +75,5 @@ node: diagnosticMode: enabled: false networkPolicy: - enabled: false \ No newline at end of file + enabled: false + \ No newline at end of file From 6e74fc11934f6f7a5225297e0a55afea8dae19cf Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:43:21 +0200 Subject: [PATCH 26/27] enable resources on otel-agent --- charts/celestia-node/values.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index 2891bab..cc62e9f 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -258,17 +258,16 @@ node: ## @param volumePermissions.resourcesPreset Set init container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production). ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 ## - resourcesPreset: "micro" + #resourcesPreset: "micro" ## @param volumePermissions.resources Set init container resources for the otel agent (essential for production workloads) ## Example: - ## resources: - ## requests: - ## cpu: 100m - ## memory: 100Mi - ## limits: - ## cpu: 200m - ## memory: 200Mi - resources: {} + resources: + requests: + cpu: 100m + memory: 100Mi + limits: + #cpu: 200m + #memory: 200Mi ## A secret must be available in the cluster with the following format: ## - name: ## - items: From 6d2d0391069ec7b6094e8b87e462fd8be3913ef8 Mon Sep 17 00:00:00 2001 From: aWN4Y25pa2EK <19519604+aWN4Y25pa2EK@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:46:16 +0200 Subject: [PATCH 27/27] enable resources on otel-agent --- charts/celestia-node/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index cc62e9f..d01a04b 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -265,7 +265,7 @@ node: requests: cpu: 100m memory: 100Mi - limits: + #limits: #cpu: 200m #memory: 200Mi ## A secret must be available in the cluster with the following format: