-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add websocket for celestia-node
#14
Changes from 11 commits
f68d5e2
c64609e
e9cfe93
0ba113a
ea3dd40
49e2972
ca6caee
5aff279
a2e3756
ed12297
b7e4367
6d4fc64
655b529
55e3fb6
dd8a8de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,6 +186,10 @@ spec: | |
resources: {{- include "common.resources.preset" (dict "type" .Values.node.resourcesPreset) | nindent 12 }} | ||
{{- end }} | ||
ports: | ||
- name: p2p-ws | ||
containerPort: {{ .Values.node.containerPorts.ws }} | ||
hostPort: {{ .Values.node.containerPorts.ws }} | ||
protocol: TCP | ||
- name: p2p-tcp | ||
containerPort: {{ .Values.node.containerPorts.p2p }} | ||
hostPort: {{ .Values.node.containerPorts.p2p }} | ||
|
@@ -272,6 +276,16 @@ spec: | |
- name: home-dir # This is needed so that the process has permissions to create files in the home directory | ||
mountPath: {{ .Values.node.settings.home }} | ||
readOnly: false | ||
{{- if .Values.node.settings.wssTLS.enabled }} | ||
- name: tls-certs | ||
mountPath: {{ .Values.node.settings.home }}/tls/cert.pem | ||
subPath: fullchain.pem | ||
readOnly: true | ||
- name: tls-certs | ||
mountPath: {{ .Values.node.settings.home }}/tls/key.pem | ||
subPath: privkey.pem | ||
readOnly: true | ||
{{- end }} | ||
{{- if .Values.node.extraVolumeMounts }} | ||
{{- include "common.tplvalues.render" (dict "value" .Values.node.extraVolumeMounts "context" $) | nindent 12 }} | ||
{{- end }} | ||
|
@@ -326,6 +340,14 @@ spec: | |
path: OAZHALLLMV4Q | ||
- key: my_celes_key_info | ||
path: my_celes_key.info | ||
- name: tls-certs | ||
secret: | ||
secretName: {{ .Values.node.settings.wssTLS.name }} | ||
items: | ||
- key: fullchain.pem | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rename file to |
||
path: fullchain.pem | ||
- key: privkey.pem | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rename file to |
||
path: privkey.pem | ||
- name: address | ||
configMap: | ||
name: {{ template "common.names.fullname" . }}-address | ||
|
@@ -380,4 +402,4 @@ spec: | |
dataSource: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.dataSource "context" $) | nindent 10 }} | ||
{{- end }} | ||
{{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) | nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a scenario where we want to deploy a helm chart without an I propose to add a boolean to the setting, which will mount the secret and set the env var if it is set to
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
commonLabels: &commonLabels | ||
chain_id: celestia | ||
environment: celestia | ||
network: da | ||
type: &nodeType bridge # check | ||
secretName: &secretName keys-da-bridge-6 # check | ||
pool: &pool pool-da-1 # check pool instance type to validate requests & limits | ||
release: &release v0.14.0 | ||
aWN4Y25pa2EK marked this conversation as resolved.
Show resolved
Hide resolved
|
||
service: | ||
external: | ||
annotations: | ||
external-dns.alpha.kubernetes.io/endpoints-type: "NodeExternalIP" | ||
external-dns.alpha.kubernetes.io/hostname: "new-da-bridge-6.celestia-bootstrap.net" | ||
external-dns.alpha.kubernetes.io/ttl: "60" | ||
persistence: | ||
storageClass: sbs-15k | ||
size: 5Ti | ||
dataSource: | ||
apiGroup: snapshot.storage.k8s.io | ||
kind: VolumeSnapshot | ||
name: da-latest | ||
node: | ||
image: | ||
tag: *release | ||
nodeSelector: | ||
k8s.scaleway.com/pool-name: *pool | ||
persistentVolumeClaimRetentionPolicy: | ||
whenDeleted: Delete | ||
whenScaled: Delete | ||
otelAgent: | ||
enabled: true | ||
grafanaOtelSecret: | ||
name: grafana-otel-token | ||
resources: | ||
requests: | ||
cpu: 6 | ||
memory: 20Gi | ||
limits: | ||
#cpu: 4 # not required since this pod should run on it's own dedicated node | ||
memory: 25Gi | ||
livenessProbe: | ||
enabled: true | ||
periodSeconds: 10 | ||
failureThreshold: 3 | ||
readinessProbe: | ||
enabled: true | ||
periodSeconds: 10 | ||
failureThreshold: 30 | ||
startupProbe: | ||
enabled: true | ||
periodSeconds: 10 | ||
failureThreshold: 60 | ||
Comment on lines
+41
to
+52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are these values different from the default?, if not, we could get rid of them to make it even easier There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, not really |
||
args: | ||
- *nodeType | ||
- start | ||
- --p2p.network=celestia | ||
- --node.store=$(CELESTIA_HOME) | ||
- --metrics | ||
- --metrics.tls=false | ||
- --p2p.metrics | ||
settings: | ||
nodeType: *nodeType | ||
address: "eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0xMC0zMSAwMDozNDo0NS4xMTI0OTQxNjMgKzAwMDAgVVRDIG09KzAuMDUwMDExODUwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiVHJDN0ktd1ZLdVRrR1ZiLSJ9.CZ5_ddw5wZtpGt5G2Jya5rtlZ_sA7ZRZoczu4aXa6siWLM0wcsHgXQ.YfRVVybr9-tYxtpq.VoVJf8mp7-SRaeOC6t9TCQwTwPpoUJvOlOTBw20tcr5yS9YWSrPxD5sVVtcqMAHmb6EOs_G_RBSKnbvQSB36xOzehD-fRHpsqe0NjPej_UaqNtzs4b-a3-z0kyjwO7TOPf4corjcGVUk6DMOkL7JAac38kBTTWdjguwnYmzxI92XZtzh2fRq8uIe02HlWfWsaCxqLNJzIQd1nxA5bQSOpBggdUmp_sgNjmgrmGFJvPzq-pDvlOf16Y1O2OHK82YmPWj-4iHOVfDOYyGT9MTLlpESESmK8HE1gqsmcAngdoeIzhopC4OGWMteLQp_d-EdopEnMJn8jCuTJAcpyjdjzZxsGKVxGghvn-BIow1bjklqQWSBElN-JvDsa7jUSZkMANmRfdo7EHbpkz41wMWQKRIDEslTvGQCUV0wq_zvH4jbll6Yf9E_8RkJUtEHPOPOhVFWI6BEQPWhQ6V-I-v9.ZQa72hj8g7R8EMNvi5cR9g" | ||
node_id: "d8169a277b25c7ee987f411567852d6aa7df578d" | ||
secret: | ||
name: *secretName | ||
config: | ||
configtoml: | ||
Core: | ||
IP: consensus-full-1 | ||
RPC: | ||
Address: 0.0.0.0 | ||
Gateway: | ||
Enabled: true | ||
Address: 0.0.0.0 | ||
Node: | ||
StartupTimeout: 2m | ||
diagnosticMode: | ||
enabled: false | ||
networkPolicy: | ||
enabled: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add a env variable
CELESTIA_TLS_PATH : /home/celestia/tls