From 1d2987e83c3ab422972fba045f61a23833a68cc8 Mon Sep 17 00:00:00 2001 From: z Date: Thu, 20 Mar 2025 13:29:01 +0700 Subject: [PATCH 1/4] WIP: New hyperliquid node chart --- charts/hyperliquid/.helmignore | 23 ++++ charts/hyperliquid/Chart.yaml | 30 +++++ charts/hyperliquid/README.md | 50 ++++++++ charts/hyperliquid/templates/NOTES.txt | 44 +++++++ charts/hyperliquid/templates/_helpers.tpl | 36 ++++++ .../templates/node/deployment.yaml | 70 +++++++++++ .../templates/node/hl_data.volumeclaim.yaml | 19 +++ .../hyperliquid/templates/node/service.yaml | 55 ++++++++ .../templates/pruner/deployment.yaml | 48 +++++++ .../templates/pruner/hl_data.volumeclaim.yaml | 19 +++ charts/hyperliquid/values.yaml | 118 ++++++++++++++++++ 11 files changed, 512 insertions(+) create mode 100644 charts/hyperliquid/.helmignore create mode 100644 charts/hyperliquid/Chart.yaml create mode 100644 charts/hyperliquid/README.md create mode 100644 charts/hyperliquid/templates/NOTES.txt create mode 100644 charts/hyperliquid/templates/_helpers.tpl create mode 100644 charts/hyperliquid/templates/node/deployment.yaml create mode 100644 charts/hyperliquid/templates/node/hl_data.volumeclaim.yaml create mode 100644 charts/hyperliquid/templates/node/service.yaml create mode 100644 charts/hyperliquid/templates/pruner/deployment.yaml create mode 100644 charts/hyperliquid/templates/pruner/hl_data.volumeclaim.yaml create mode 100644 charts/hyperliquid/values.yaml diff --git a/charts/hyperliquid/.helmignore b/charts/hyperliquid/.helmignore new file mode 100644 index 00000000..0e8a0eb3 --- /dev/null +++ b/charts/hyperliquid/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/hyperliquid/Chart.yaml b/charts/hyperliquid/Chart.yaml new file mode 100644 index 00000000..5a4aafaf --- /dev/null +++ b/charts/hyperliquid/Chart.yaml @@ -0,0 +1,30 @@ +apiVersion: v2 +name: hyperliquid +description: A Helm chart for running a hyperliquid node + +maintainers: + - name: WesleyCharlesBlake + url: https://github.com/WesleyCharlesBlake + - name: chronicleprotocol + url: https://chroniclelabs.org + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "1.16.0" diff --git a/charts/hyperliquid/README.md b/charts/hyperliquid/README.md new file mode 100644 index 00000000..5f89c259 --- /dev/null +++ b/charts/hyperliquid/README.md @@ -0,0 +1,50 @@ +# hyperliquid + +![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square) + +A Helm chart for running a hyperliquid node + +## Maintainers + +| Name | Email | Url | +| ---- | ------ | --- | +| WesleyCharlesBlake | | | +| chronicleprotocol | | | + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| affinity | object | `{}` | | +| autoscaling.enabled | bool | `false` | | +| autoscaling.maxReplicas | int | `100` | | +| autoscaling.minReplicas | int | `1` | | +| autoscaling.targetCPUUtilizationPercentage | int | `80` | | +| autoscaling.targetMemoryUtilizationPercentage | int | `80` | | +| node.nodeSelector | object | `{}` | | +| node.persistence.hl_data.accessMode[0] | string | `"ReadWriteOnce"` | | +| node.persistence.hl_data.enabled | bool | `true` | | +| node.persistence.hl_data.size | string | `"1Gi"` | | +| node.persistence.hl_data.storageClass | string | `"-"` | | +| node.replicas | int | `1` | | +| node.repository.image | string | `""` | | +| node.repository.tag | string | `""` | | +| pruner.imagePullPolicy | string | `"IfNotPresent"` | | +| pruner.nodeSelector | object | `{}` | | +| pruner.persistence.hl_data.accessMode[0] | string | `"ReadWriteOnce"` | | +| pruner.persistence.hl_data.enabled | bool | `true` | | +| pruner.persistence.hl_data.size | string | `"1Gi"` | | +| pruner.persistence.hl_data.storageClass | string | `"-"` | | +| pruner.replicas | int | `1` | | +| pruner.repository.image | string | `""` | | +| pruner.repository.tag | string | `""` | | +| pruner.resources | object | `{}` | | +| pruner.serviceAccount | string | `""` | | +| pullSecrets | list | `[]` | | +| replicaCount | int | `1` | | +| resources.imagePullPolicy | string | `"IfNotPresent"` | | +| resources.serviceAccount | string | `""` | | +| tolerations | list | `[]` | | + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/hyperliquid/templates/NOTES.txt b/charts/hyperliquid/templates/NOTES.txt new file mode 100644 index 00000000..2c350184 --- /dev/null +++ b/charts/hyperliquid/templates/NOTES.txt @@ -0,0 +1,44 @@ +Thanks to have installed {{ .Chart.Name }} {{ .Chart.Version }} as {{ .Release.Name }} ({{.Chart.AppVersion }}). + +# Get release information + +To learn more about the release, try: + + $ helm -n {{ .Release.Namespace }} status {{ .Release.Name }} + $ helm -n {{ .Release.Namespace }} get values {{ .Release.Name }} + $ helm -n {{ .Release.Namespace }} get all {{ .Release.Name }} + +# To delete the release + +Use helm uninstall command to delete the release. + + $ helm -n {{ .Release.Namespace }} uninstall {{ .Release.Name }} + +Note that some resources may still be in use after a release is deleted. For exemple, PersistentVolumeClaims are not deleted by default for some storage classes or if some annotations are set. + +# More information + +You can see this notes again by running: + + $ helm -n {{ .Release.Namespace }} get notes {{ .Release.Name }} + +{{- $count := 0 -}} +{{- $listOfURL := "" -}} +{{- if and .Values.node.ingress .Values.node.ingress.enabled }} +{{- $count = add1 $count -}}{{- $listOfURL = printf "%s\n- http://%s" $listOfURL (tpl .Values.node.ingress.host .) -}} +{{- end }} +{{- if and .Values.pruner.ingress .Values.pruner.ingress.enabled }} +{{- $count = add1 $count -}}{{- $listOfURL = printf "%s\n- http://%s" $listOfURL (tpl .Values.pruner.ingress.host .) -}} +{{- end }} +{{- if gt $count 0 }} + +# List of activated ingresses URL: +{{ $listOfURL }} + +You can get these urls with kubectl: + + kubeclt get ingress -n {{ .Release.Namespace }} + +{{- end }} + +Thanks for using Helm! diff --git a/charts/hyperliquid/templates/_helpers.tpl b/charts/hyperliquid/templates/_helpers.tpl new file mode 100644 index 00000000..90c12a9f --- /dev/null +++ b/charts/hyperliquid/templates/_helpers.tpl @@ -0,0 +1,36 @@ +{{- define "hyperliquid.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{- define "hyperliquid.name" -}} +{{- if .Values.nameOverride -}} +{{- .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} + +{{- define "hyperliquid.labels" -}} +{{ include "hyperliquid.selectorLabels" .}} +{{ if .Chart.Version -}} +{{ printf "katenary.v3/chart-version: '%s'" .Chart.Version }} +{{- end }} +{{ if .Chart.AppVersion -}} +{{ printf "katenary.v3/app-version: '%s'" .Chart.AppVersion }} +{{- end }} +{{- end -}} + +{{- define "hyperliquid.selectorLabels" -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{ printf "katenary.v3/name: %s" $name }} +{{ printf "katenary.v3/instance: %s" .Release.Name }} +{{- end -}} diff --git a/charts/hyperliquid/templates/node/deployment.yaml b/charts/hyperliquid/templates/node/deployment.yaml new file mode 100644 index 00000000..4c1bac73 --- /dev/null +++ b/charts/hyperliquid/templates/node/deployment.yaml @@ -0,0 +1,70 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + {{- include "hyperliquid.labels" . | nindent 4 }} + name: '{{ include "hyperliquid.fullname" . }}-node' +spec: + replicas: {{ .Values.node.replicas }} + selector: + matchLabels: + {{- include "hyperliquid.selectorLabels" . | nindent 6 }} + strategy: {} + template: + metadata: + labels: + {{- include "hyperliquid.selectorLabels" . | nindent 8 }} + spec: + containers: + - image: '{{ tpl .Values.node.repository.image $ }}:{{ tpl .Values.node.repository.tag $ | default "latest" }}' + imagePullPolicy: {{ .Values.node.imagePullPolicy }} + name: node + ports: + - containerPort: 4000 + name: port-4000 + - containerPort: 4001 + name: port-4001 + - containerPort: 4002 + name: port-4002 + - containerPort: 4003 + name: port-4003 + - containerPort: 4004 + name: port-4004 + - containerPort: 4005 + name: port-4005 + - containerPort: 4006 + name: port-4006 + - containerPort: 4007 + name: port-4007 + - containerPort: 4008 + name: port-4008 + - containerPort: 4009 + name: port-4009 + - containerPort: 4010 + name: port-4010 + {{- if .Values.node.resources }} + resources: + {{ .Values.node.resources | toYaml | nindent 10 }} + {{- end }} + volumeMounts: + {{- if .Values.node.persistence.hl_data.enabled }} + - mountPath: /home/hluser/hl/data + name: hl-data + {{- end }} + {{- if .Values.pullSecrets }} + imagePullSecrets: + {{- .Values.pullSecrets | toYaml | nindent 6 }} + {{- end }} + {{- if .Values.node.nodeSelector }} + nodeSelector: + {{- .Values.node.nodeSelector | toYaml | nindent 8 }} + {{- end }} + {{- if ne .Values.node.serviceAccount "" }} + serviceAccountName: {{ .Values.node.serviceAccount | quote }} + {{- end }} + volumes: + {{- if .Values.node.persistence.hl_data.enabled }} + - name: hl-data + persistentVolumeClaim: + claimName: '{{ include "hyperliquid.fullname" . }}-node-hl-data' + {{- end }} diff --git a/charts/hyperliquid/templates/node/hl_data.volumeclaim.yaml b/charts/hyperliquid/templates/node/hl_data.volumeclaim.yaml new file mode 100644 index 00000000..728220cc --- /dev/null +++ b/charts/hyperliquid/templates/node/hl_data.volumeclaim.yaml @@ -0,0 +1,19 @@ +{{- if .Values.node.persistence.hl_data.enabled }} +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + annotations: + labels: + {{- include "hyperliquid.labels" . | nindent 4 }} + name: '{{ include "hyperliquid.fullname" . }}-node-hl-data' +spec: + accessModes: + {{- .Values.node.persistence.hl_data.accessMode | toYaml | nindent 2 }} + resources: + requests: + storage: {{ tpl .Values.node.persistence.hl_data.size $ }} + {{- if ne .Values.node.persistence.hl_data.storageClass "-" }} + storageClassName: '{{ .Values.node.persistence.hl_data.storageClass }}' + {{- end }} + +{{- end }} diff --git a/charts/hyperliquid/templates/node/service.yaml b/charts/hyperliquid/templates/node/service.yaml new file mode 100644 index 00000000..49adfd06 --- /dev/null +++ b/charts/hyperliquid/templates/node/service.yaml @@ -0,0 +1,55 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + labels: + {{- include "hyperliquid.labels" . | nindent 4 }} + name: '{{ include "hyperliquid.fullname" . }}-node' +spec: + ports: + - name: node + port: 4000 + protocol: TCP + targetPort: 4000 + - name: node + port: 4001 + protocol: TCP + targetPort: 4001 + - name: node + port: 4002 + protocol: TCP + targetPort: 4002 + - name: node + port: 4003 + protocol: TCP + targetPort: 4003 + - name: node + port: 4004 + protocol: TCP + targetPort: 4004 + - name: node + port: 4005 + protocol: TCP + targetPort: 4005 + - name: node + port: 4006 + protocol: TCP + targetPort: 4006 + - name: node + port: 4007 + protocol: TCP + targetPort: 4007 + - name: node + port: 4008 + protocol: TCP + targetPort: 4008 + - name: node + port: 4009 + protocol: TCP + targetPort: 4009 + - name: node + port: 4010 + protocol: TCP + targetPort: 4010 + selector: + {{- include "hyperliquid.selectorLabels" . | nindent 4 }} diff --git a/charts/hyperliquid/templates/pruner/deployment.yaml b/charts/hyperliquid/templates/pruner/deployment.yaml new file mode 100644 index 00000000..38bcd368 --- /dev/null +++ b/charts/hyperliquid/templates/pruner/deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + labels: + {{- include "hyperliquid.labels" . | nindent 4 }} + name: '{{ include "hyperliquid.fullname" . }}-pruner' +spec: + replicas: {{ .Values.pruner.replicas }} + selector: + matchLabels: + {{- include "hyperliquid.selectorLabels" . | nindent 6 }} + strategy: {} + template: + metadata: + labels: + {{- include "hyperliquid.selectorLabels" . | nindent 8 }} + spec: + containers: + - image: '{{ tpl .Values.pruner.repository.image $ }}:{{ tpl .Values.pruner.repository.tag $ | default "latest" }}' + imagePullPolicy: {{ .Values.pruner.imagePullPolicy }} + name: pruner + {{- if .Values.pruner.resources }} + resources: + {{ .Values.pruner.resources | toYaml | nindent 10 }} + {{- end }} + volumeMounts: + {{- if .Values.pruner.persistence.hl_data.enabled }} + - mountPath: /home/hluser/hl/data + name: hl-data + {{- end }} + {{- if .Values.pullSecrets }} + imagePullSecrets: + {{- .Values.pullSecrets | toYaml | nindent 6 }} + {{- end }} + {{- if .Values.pruner.nodeSelector }} + nodeSelector: + {{- .Values.pruner.nodeSelector | toYaml | nindent 8 }} + {{- end }} + {{- if ne .Values.pruner.serviceAccount "" }} + serviceAccountName: {{ .Values.pruner.serviceAccount | quote }} + {{- end }} + volumes: + {{- if .Values.pruner.persistence.hl_data.enabled }} + - name: hl-data + persistentVolumeClaim: + claimName: '{{ include "hyperliquid.fullname" . }}-pruner-hl-data' + {{- end }} diff --git a/charts/hyperliquid/templates/pruner/hl_data.volumeclaim.yaml b/charts/hyperliquid/templates/pruner/hl_data.volumeclaim.yaml new file mode 100644 index 00000000..1a25ea63 --- /dev/null +++ b/charts/hyperliquid/templates/pruner/hl_data.volumeclaim.yaml @@ -0,0 +1,19 @@ +{{- if .Values.pruner.persistence.hl_data.enabled }} +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + annotations: + labels: + {{- include "hyperliquid.labels" . | nindent 4 }} + name: '{{ include "hyperliquid.fullname" . }}-pruner-hl-data' +spec: + accessModes: + {{- .Values.pruner.persistence.hl_data.accessMode | toYaml | nindent 2 }} + resources: + requests: + storage: {{ tpl .Values.pruner.persistence.hl_data.size $ }} + {{- if ne .Values.pruner.persistence.hl_data.storageClass "-" }} + storageClassName: '{{ .Values.pruner.persistence.hl_data.storageClass }}' + {{- end }} + +{{- end }} diff --git a/charts/hyperliquid/values.yaml b/charts/hyperliquid/values.yaml new file mode 100644 index 00000000..d3120ec8 --- /dev/null +++ b/charts/hyperliquid/values.yaml @@ -0,0 +1,118 @@ +# Default values for hyperliquid. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ +replicaCount: 1 + +# node configuration +node: + repository: + image: "" + tag: "" + persistence: + hl_data: + # Storage class to use for PVCs + # storageClass: "-" means use default + # storageClass: "" means do not specify + # storageClass: "foo" means use that storageClass + storageClass: '-' + size: 1Gi + accessMode: + - ReadWriteOnce + enabled: true + replicas: 1 + + nodeSelector: {} + # Resources allows you to specify the resource requests and limits for a service. + # Resources are used to specify the amount of CPU and memory that + # a container needs. + # + # e.g. + # resources: + # requests: + # memory: "64Mi" + # cpu: "250m" + # limits: + # memory: "128Mi" + # cpu: "500m" +resources: + # imagePullPolicy allows you to specify a policy to cache or always pull an image. + # You must provide a string value with one of the following values: + # - Always -> will always pull the image + # - Never -> will never pull the image, the image should be present on the node + # - IfNotPresent -> will pull the image only if it is not present on the node + imagePullPolicy: IfNotPresent + serviceAccount: "" + + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +# pruner configuration +pruner: + repository: + image: "" + tag: "" + persistence: + hl_data: + # Storage class to use for PVCs + # storageClass: "-" means use default + # storageClass: "" means do not specify + # storageClass: "foo" means use that storageClass + storageClass: '-' + size: 1Gi + accessMode: + - ReadWriteOnce + enabled: true + + replicas: 1 + + nodeSelector: {} + # Resources allows you to specify the resource requests and limits for a service. + # Resources are used to specify the amount of CPU and memory that + # a container needs. + # + # e.g. + # resources: + # requests: + # memory: "64Mi" + # cpu: "250m" + # limits: + # memory: "128Mi" + # cpu: "500m" + # key: pruner.resources + resources: {} + # imagePullPolicy allows you to specify a policy to cache or always pull an image. + # You must provide a string value with one of the following values: + # - Always -> will always pull the image + # - Never -> will never pull the image, the image should be present on the node + # - IfNotPresent -> will pull the image only if it is not present on the node + imagePullPolicy: IfNotPresent + serviceAccount: "" + +# imagePullSecrets allows you to specify a name of an image pull secret. +# You must provide a list of object with the name field set to the name of the +# e.g. +# pullSecrets: +# - name: regcred +# You are, for now, responsible for creating the secret. +pullSecrets: [] + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + targetMemoryUtilizationPercentage: 80 + +tolerations: [] + +affinity: {} From 221280d23ec25b70d1aba1f9fd33dea655b99332 Mon Sep 17 00:00:00 2001 From: Paulo Pigatto Date: Thu, 20 Mar 2025 19:35:01 -0300 Subject: [PATCH 2/4] WIP: helm chart --- charts/hyperliquid/README.md | 72 ++++--- charts/hyperliquid/templates/_helpers.tpl | 11 ++ .../templates/node/deployment.yaml | 70 ------- .../hyperliquid/templates/node/service.yaml | 55 ------ .../templates/pruner/deployment.yaml | 48 ----- .../templates/pruner/hl_data.volumeclaim.yaml | 19 -- .../hl_data.volumeclaim.yaml => pvc.yaml} | 0 charts/hyperliquid/templates/service.yaml | 24 +++ .../hyperliquid/templates/serviceaccount.yaml | 12 ++ charts/hyperliquid/templates/statefulset.yaml | 83 ++++++++ charts/hyperliquid/values.yaml | 178 +++++++++++------- 11 files changed, 284 insertions(+), 288 deletions(-) delete mode 100644 charts/hyperliquid/templates/node/deployment.yaml delete mode 100644 charts/hyperliquid/templates/node/service.yaml delete mode 100644 charts/hyperliquid/templates/pruner/deployment.yaml delete mode 100644 charts/hyperliquid/templates/pruner/hl_data.volumeclaim.yaml rename charts/hyperliquid/templates/{node/hl_data.volumeclaim.yaml => pvc.yaml} (100%) create mode 100644 charts/hyperliquid/templates/service.yaml create mode 100644 charts/hyperliquid/templates/serviceaccount.yaml create mode 100644 charts/hyperliquid/templates/statefulset.yaml diff --git a/charts/hyperliquid/README.md b/charts/hyperliquid/README.md index 5f89c259..61dde185 100644 --- a/charts/hyperliquid/README.md +++ b/charts/hyperliquid/README.md @@ -16,34 +16,60 @@ A Helm chart for running a hyperliquid node | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | -| autoscaling.enabled | bool | `false` | | -| autoscaling.maxReplicas | int | `100` | | -| autoscaling.minReplicas | int | `1` | | -| autoscaling.targetCPUUtilizationPercentage | int | `80` | | -| autoscaling.targetMemoryUtilizationPercentage | int | `80` | | -| node.nodeSelector | object | `{}` | | +| imagePullSecrets | list | `[]` | | +| livenessProbe.initialDelaySeconds | int | `60` | | +| livenessProbe.periodSeconds | int | `120` | | +| livenessProbe.tcpSocket.port | string | `"httprpc"` | | +| node.image.pullPolicy | string | `"IfNotPresent"` | | +| node.image.repository | string | `"ghcr.io/chronicleprotocol/hyperliquid"` | | +| node.image.tag | string | `"latest"` | | | node.persistence.hl_data.accessMode[0] | string | `"ReadWriteOnce"` | | | node.persistence.hl_data.enabled | bool | `true` | | -| node.persistence.hl_data.size | string | `"1Gi"` | | -| node.persistence.hl_data.storageClass | string | `"-"` | | +| node.persistence.hl_data.size | string | `"200Gi"` | | +| node.persistence.hl_data.storageClass | string | `"gp3"` | | | node.replicas | int | `1` | | -| node.repository.image | string | `""` | | -| node.repository.tag | string | `""` | | -| pruner.imagePullPolicy | string | `"IfNotPresent"` | | -| pruner.nodeSelector | object | `{}` | | -| pruner.persistence.hl_data.accessMode[0] | string | `"ReadWriteOnce"` | | -| pruner.persistence.hl_data.enabled | bool | `true` | | -| pruner.persistence.hl_data.size | string | `"1Gi"` | | -| pruner.persistence.hl_data.storageClass | string | `"-"` | | -| pruner.replicas | int | `1` | | -| pruner.repository.image | string | `""` | | -| pruner.repository.tag | string | `""` | | +| node.resources | object | `{}` | | +| nodeSelector | object | `{}` | | +| podSecurityContext | object | `{}` | | +| pruner.image.pullPolicy | string | `"IfNotPresent"` | | +| pruner.image.repository | string | `"ghcr.io/chronicleprotocol/hyperliquid-pruner"` | | +| pruner.image.tag | string | `"latest"` | | | pruner.resources | object | `{}` | | -| pruner.serviceAccount | string | `""` | | -| pullSecrets | list | `[]` | | +| readinessProbe.initialDelaySeconds | int | `10` | | +| readinessProbe.periodSeconds | int | `10` | | +| readinessProbe.tcpSocket.port | string | `"httprpc"` | | | replicaCount | int | `1` | | -| resources.imagePullPolicy | string | `"IfNotPresent"` | | -| resources.serviceAccount | string | `""` | | +| securityContext | object | `{}` | | +| service.annotations | object | `{}` | | +| service.labels | object | `{}` | | +| service.ports.gossip0.port | int | `4000` | | +| service.ports.gossip0.protocol | string | `"TCP"` | | +| service.ports.gossip1.port | int | `4001` | | +| service.ports.gossip1.protocol | string | `"TCP"` | | +| service.ports.gossip10.port | int | `4010` | | +| service.ports.gossip10.protocol | string | `"TCP"` | | +| service.ports.gossip2.port | int | `4002` | | +| service.ports.gossip2.protocol | string | `"TCP"` | | +| service.ports.gossip3.port | int | `4003` | | +| service.ports.gossip3.protocol | string | `"TCP"` | | +| service.ports.gossip4.port | int | `4004` | | +| service.ports.gossip4.protocol | string | `"TCP"` | | +| service.ports.gossip5.port | int | `4005` | | +| service.ports.gossip5.protocol | string | `"TCP"` | | +| service.ports.gossip6.port | int | `4006` | | +| service.ports.gossip6.protocol | string | `"TCP"` | | +| service.ports.gossip7.port | int | `4007` | | +| service.ports.gossip7.protocol | string | `"TCP"` | | +| service.ports.gossip8.port | int | `4008` | | +| service.ports.gossip8.protocol | string | `"TCP"` | | +| service.ports.gossip9.port | int | `4009` | | +| service.ports.gossip9.protocol | string | `"TCP"` | | +| service.ports.httprpc.port | int | `3001` | | +| service.ports.httprpc.protocol | string | `"TCP"` | | +| service.type | string | `"ClusterIP"` | | +| serviceAccount.annotations | object | `{}` | | +| serviceAccount.create | bool | `true` | | +| serviceAccount.name | string | `""` | | | tolerations | list | `[]` | | ---------------------------------------------- diff --git a/charts/hyperliquid/templates/_helpers.tpl b/charts/hyperliquid/templates/_helpers.tpl index 90c12a9f..789b8528 100644 --- a/charts/hyperliquid/templates/_helpers.tpl +++ b/charts/hyperliquid/templates/_helpers.tpl @@ -34,3 +34,14 @@ {{ printf "katenary.v3/name: %s" $name }} {{ printf "katenary.v3/instance: %s" .Release.Name }} {{- end -}} + +{{/* +Create the name of the service account to use +*/}} +{{- define "hyperliquid.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "hyperliquid.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} diff --git a/charts/hyperliquid/templates/node/deployment.yaml b/charts/hyperliquid/templates/node/deployment.yaml deleted file mode 100644 index 4c1bac73..00000000 --- a/charts/hyperliquid/templates/node/deployment.yaml +++ /dev/null @@ -1,70 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - {{- include "hyperliquid.labels" . | nindent 4 }} - name: '{{ include "hyperliquid.fullname" . }}-node' -spec: - replicas: {{ .Values.node.replicas }} - selector: - matchLabels: - {{- include "hyperliquid.selectorLabels" . | nindent 6 }} - strategy: {} - template: - metadata: - labels: - {{- include "hyperliquid.selectorLabels" . | nindent 8 }} - spec: - containers: - - image: '{{ tpl .Values.node.repository.image $ }}:{{ tpl .Values.node.repository.tag $ | default "latest" }}' - imagePullPolicy: {{ .Values.node.imagePullPolicy }} - name: node - ports: - - containerPort: 4000 - name: port-4000 - - containerPort: 4001 - name: port-4001 - - containerPort: 4002 - name: port-4002 - - containerPort: 4003 - name: port-4003 - - containerPort: 4004 - name: port-4004 - - containerPort: 4005 - name: port-4005 - - containerPort: 4006 - name: port-4006 - - containerPort: 4007 - name: port-4007 - - containerPort: 4008 - name: port-4008 - - containerPort: 4009 - name: port-4009 - - containerPort: 4010 - name: port-4010 - {{- if .Values.node.resources }} - resources: - {{ .Values.node.resources | toYaml | nindent 10 }} - {{- end }} - volumeMounts: - {{- if .Values.node.persistence.hl_data.enabled }} - - mountPath: /home/hluser/hl/data - name: hl-data - {{- end }} - {{- if .Values.pullSecrets }} - imagePullSecrets: - {{- .Values.pullSecrets | toYaml | nindent 6 }} - {{- end }} - {{- if .Values.node.nodeSelector }} - nodeSelector: - {{- .Values.node.nodeSelector | toYaml | nindent 8 }} - {{- end }} - {{- if ne .Values.node.serviceAccount "" }} - serviceAccountName: {{ .Values.node.serviceAccount | quote }} - {{- end }} - volumes: - {{- if .Values.node.persistence.hl_data.enabled }} - - name: hl-data - persistentVolumeClaim: - claimName: '{{ include "hyperliquid.fullname" . }}-node-hl-data' - {{- end }} diff --git a/charts/hyperliquid/templates/node/service.yaml b/charts/hyperliquid/templates/node/service.yaml deleted file mode 100644 index 49adfd06..00000000 --- a/charts/hyperliquid/templates/node/service.yaml +++ /dev/null @@ -1,55 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - annotations: - labels: - {{- include "hyperliquid.labels" . | nindent 4 }} - name: '{{ include "hyperliquid.fullname" . }}-node' -spec: - ports: - - name: node - port: 4000 - protocol: TCP - targetPort: 4000 - - name: node - port: 4001 - protocol: TCP - targetPort: 4001 - - name: node - port: 4002 - protocol: TCP - targetPort: 4002 - - name: node - port: 4003 - protocol: TCP - targetPort: 4003 - - name: node - port: 4004 - protocol: TCP - targetPort: 4004 - - name: node - port: 4005 - protocol: TCP - targetPort: 4005 - - name: node - port: 4006 - protocol: TCP - targetPort: 4006 - - name: node - port: 4007 - protocol: TCP - targetPort: 4007 - - name: node - port: 4008 - protocol: TCP - targetPort: 4008 - - name: node - port: 4009 - protocol: TCP - targetPort: 4009 - - name: node - port: 4010 - protocol: TCP - targetPort: 4010 - selector: - {{- include "hyperliquid.selectorLabels" . | nindent 4 }} diff --git a/charts/hyperliquid/templates/pruner/deployment.yaml b/charts/hyperliquid/templates/pruner/deployment.yaml deleted file mode 100644 index 38bcd368..00000000 --- a/charts/hyperliquid/templates/pruner/deployment.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - annotations: - labels: - {{- include "hyperliquid.labels" . | nindent 4 }} - name: '{{ include "hyperliquid.fullname" . }}-pruner' -spec: - replicas: {{ .Values.pruner.replicas }} - selector: - matchLabels: - {{- include "hyperliquid.selectorLabels" . | nindent 6 }} - strategy: {} - template: - metadata: - labels: - {{- include "hyperliquid.selectorLabels" . | nindent 8 }} - spec: - containers: - - image: '{{ tpl .Values.pruner.repository.image $ }}:{{ tpl .Values.pruner.repository.tag $ | default "latest" }}' - imagePullPolicy: {{ .Values.pruner.imagePullPolicy }} - name: pruner - {{- if .Values.pruner.resources }} - resources: - {{ .Values.pruner.resources | toYaml | nindent 10 }} - {{- end }} - volumeMounts: - {{- if .Values.pruner.persistence.hl_data.enabled }} - - mountPath: /home/hluser/hl/data - name: hl-data - {{- end }} - {{- if .Values.pullSecrets }} - imagePullSecrets: - {{- .Values.pullSecrets | toYaml | nindent 6 }} - {{- end }} - {{- if .Values.pruner.nodeSelector }} - nodeSelector: - {{- .Values.pruner.nodeSelector | toYaml | nindent 8 }} - {{- end }} - {{- if ne .Values.pruner.serviceAccount "" }} - serviceAccountName: {{ .Values.pruner.serviceAccount | quote }} - {{- end }} - volumes: - {{- if .Values.pruner.persistence.hl_data.enabled }} - - name: hl-data - persistentVolumeClaim: - claimName: '{{ include "hyperliquid.fullname" . }}-pruner-hl-data' - {{- end }} diff --git a/charts/hyperliquid/templates/pruner/hl_data.volumeclaim.yaml b/charts/hyperliquid/templates/pruner/hl_data.volumeclaim.yaml deleted file mode 100644 index 1a25ea63..00000000 --- a/charts/hyperliquid/templates/pruner/hl_data.volumeclaim.yaml +++ /dev/null @@ -1,19 +0,0 @@ -{{- if .Values.pruner.persistence.hl_data.enabled }} -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - annotations: - labels: - {{- include "hyperliquid.labels" . | nindent 4 }} - name: '{{ include "hyperliquid.fullname" . }}-pruner-hl-data' -spec: - accessModes: - {{- .Values.pruner.persistence.hl_data.accessMode | toYaml | nindent 2 }} - resources: - requests: - storage: {{ tpl .Values.pruner.persistence.hl_data.size $ }} - {{- if ne .Values.pruner.persistence.hl_data.storageClass "-" }} - storageClassName: '{{ .Values.pruner.persistence.hl_data.storageClass }}' - {{- end }} - -{{- end }} diff --git a/charts/hyperliquid/templates/node/hl_data.volumeclaim.yaml b/charts/hyperliquid/templates/pvc.yaml similarity index 100% rename from charts/hyperliquid/templates/node/hl_data.volumeclaim.yaml rename to charts/hyperliquid/templates/pvc.yaml diff --git a/charts/hyperliquid/templates/service.yaml b/charts/hyperliquid/templates/service.yaml new file mode 100644 index 00000000..cd74deff --- /dev/null +++ b/charts/hyperliquid/templates/service.yaml @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "hyperliquid.fullname" . }} + labels: + {{- include "hyperliquid.labels" . | nindent 4 }} + {{- with .Values.service.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + annotations: + {{- with .Values.service.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + type: {{ .Values.service.type }} + ports: + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val.port }} + targetPort: {{ $val.port }} + protocol: {{ $val.protocol }} + name: {{ $key }} + {{- end }} + selector: + {{- include "hyperliquid.selectorLabels" . | nindent 4 }} diff --git a/charts/hyperliquid/templates/serviceaccount.yaml b/charts/hyperliquid/templates/serviceaccount.yaml new file mode 100644 index 00000000..fb200e6a --- /dev/null +++ b/charts/hyperliquid/templates/serviceaccount.yaml @@ -0,0 +1,12 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "hyperliquid.serviceAccountName" . }} + labels: + {{- include "hyperliquid.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +{{- end }} diff --git a/charts/hyperliquid/templates/statefulset.yaml b/charts/hyperliquid/templates/statefulset.yaml new file mode 100644 index 00000000..28982c65 --- /dev/null +++ b/charts/hyperliquid/templates/statefulset.yaml @@ -0,0 +1,83 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + labels: + {{- include "hyperliquid.labels" . | nindent 4 }} + name: '{{ include "hyperliquid.fullname" . }}' +spec: + replicas: {{ .Values.node.replicas }} + selector: + matchLabels: + {{- include "hyperliquid.selectorLabels" . | nindent 6 }} + serviceName: {{ include "hyperliquid.fullname" . }} + template: + metadata: + labels: + {{- include "hyperliquid.selectorLabels" . | nindent 8 }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + serviceAccountName: {{ include "hyperliquid.serviceAccountName" . }} + containers: + - image: '{{ tpl .Values.node.image.repository $ }}:{{ tpl .Values.node.image.tag $ | default "latest" }}' + imagePullPolicy: {{ .Values.node.image.pullPolicy }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + name: node + command: + - /home/hluser/hl-visor + args: + - run-non-validator + - --serve-eth-rpc + ports: + {{- range $key, $val := .Values.service.ports }} + - name: {{ $key }} + containerPort: {{ $val.port }} + protocol: {{ $val.protocol }} + {{- end }} + livenessProbe: + {{- toYaml .Values.livenessProbe | nindent 12 }} + readinessProbe: + {{- toYaml .Values.readinessProbe | nindent 12 }} + {{- if .Values.node.resources }} + resources: + {{ .Values.node.resources | toYaml | nindent 10 }} + {{- end }} + volumeMounts: + {{- if .Values.node.persistence.hl_data.enabled }} + - mountPath: /home/hluser/hl/data + name: hl-data + {{- end }} + - image: '{{ tpl .Values.pruner.image.repository $ }}:{{ tpl .Values.pruner.image.tag $ | default "latest" }}' + imagePullPolicy: {{ .Values.pruner.image.pullPolicy }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + name: pruner + {{- if .Values.pruner.resources }} + resources: + {{ .Values.pruner.resources | toYaml | nindent 10 }} + {{- end }} + volumeMounts: + {{- if .Values.node.persistence.hl_data.enabled }} + - mountPath: /home/hluser/hl/data + name: hl-data + {{- end }} + nodeSelector: + {{- toYaml .Values.nodeSelector | nindent 8 }} + affinity: + {{- toYaml .Values.affinity | nindent 8 }} + tolerations: + {{- toYaml .Values.tolerations | nindent 8 }} + {{- if ne .Values.node.serviceAccount "" }} + serviceAccountName: {{ .Values.node.serviceAccount | quote }} + {{- end }} + volumes: + {{- if .Values.node.persistence.hl_data.enabled }} + - name: hl-data + persistentVolumeClaim: + claimName: '{{ include "hyperliquid.fullname" . }}-node-hl-data' + {{- end }} diff --git a/charts/hyperliquid/values.yaml b/charts/hyperliquid/values.yaml index d3120ec8..98f40209 100644 --- a/charts/hyperliquid/values.yaml +++ b/charts/hyperliquid/values.yaml @@ -7,44 +7,23 @@ replicaCount: 1 # node configuration node: - repository: - image: "" - tag: "" + replicas: 1 + image: + repository: ghcr.io/chronicleprotocol/hyperliquid + pullPolicy: IfNotPresent + tag: latest persistence: hl_data: # Storage class to use for PVCs # storageClass: "-" means use default # storageClass: "" means do not specify # storageClass: "foo" means use that storageClass - storageClass: '-' - size: 1Gi + storageClass: 'gp3' + size: 200Gi accessMode: - ReadWriteOnce enabled: true - replicas: 1 - - nodeSelector: {} - # Resources allows you to specify the resource requests and limits for a service. - # Resources are used to specify the amount of CPU and memory that - # a container needs. - # - # e.g. - # resources: - # requests: - # memory: "64Mi" - # cpu: "250m" - # limits: - # memory: "128Mi" - # cpu: "500m" -resources: - # imagePullPolicy allows you to specify a policy to cache or always pull an image. - # You must provide a string value with one of the following values: - # - Always -> will always pull the image - # - Never -> will never pull the image, the image should be present on the node - # - IfNotPresent -> will pull the image only if it is not present on the node - imagePullPolicy: IfNotPresent - serviceAccount: "" - + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following @@ -58,45 +37,92 @@ resources: # pruner configuration pruner: - repository: - image: "" - tag: "" - persistence: - hl_data: - # Storage class to use for PVCs - # storageClass: "-" means use default - # storageClass: "" means do not specify - # storageClass: "foo" means use that storageClass - storageClass: '-' - size: 1Gi - accessMode: - - ReadWriteOnce - enabled: true + image: + repository: ghcr.io/chronicleprotocol/hyperliquid-pruner + pullPolicy: IfNotPresent + tag: latest + resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi - replicas: 1 +serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" - nodeSelector: {} - # Resources allows you to specify the resource requests and limits for a service. - # Resources are used to specify the amount of CPU and memory that - # a container needs. - # - # e.g. - # resources: - # requests: - # memory: "64Mi" - # cpu: "250m" - # limits: - # memory: "128Mi" - # cpu: "500m" - # key: pruner.resources - resources: {} - # imagePullPolicy allows you to specify a policy to cache or always pull an image. - # You must provide a string value with one of the following values: - # - Always -> will always pull the image - # - Never -> will never pull the image, the image should be present on the node - # - IfNotPresent -> will pull the image only if it is not present on the node - imagePullPolicy: IfNotPresent - serviceAccount: "" +# @default -- See `values.yaml` +livenessProbe: + tcpSocket: + port: httprpc + initialDelaySeconds: 60 + periodSeconds: 120 + +# @default -- See `values.yaml` +readinessProbe: + tcpSocket: + port: httprpc + initialDelaySeconds: 10 + periodSeconds: 10 + +service: + type: ClusterIP + annotations: {} + # annotations: + # svccontroller.k3s.cattle.io/tolerations: | + # - effect: NoExecute + # key: somekey + # operator: Equal + # value: somevalue + labels: {} + ports: + httprpc: + port: 3001 + protocol: TCP + gossip0: + port: 4000 + protocol: TCP + gossip1: + port: 4001 + protocol: TCP + gossip2: + port: 4002 + protocol: TCP + gossip3: + port: 4003 + protocol: TCP + gossip4: + port: 4004 + protocol: TCP + gossip5: + port: 4005 + protocol: TCP + gossip6: + port: 4006 + protocol: TCP + gossip7: + port: 4007 + protocol: TCP + gossip8: + port: 4008 + protocol: TCP + gossip9: + port: 4009 + protocol: TCP + gossip10: + port: 4010 + protocol: TCP # imagePullSecrets allows you to specify a name of an image pull secret. # You must provide a list of object with the name field set to the name of the @@ -104,14 +130,20 @@ pruner: # pullSecrets: # - name: regcred # You are, for now, responsible for creating the secret. -pullSecrets: [] +imagePullSecrets: [] + +podSecurityContext: {} + # fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - targetMemoryUtilizationPercentage: 80 +nodeSelector: {} tolerations: [] From 1aa8cda8b6dcfb245046f7c669d0530d5bddaa20 Mon Sep 17 00:00:00 2001 From: Paulo Pigatto Date: Thu, 20 Mar 2025 21:47:42 -0300 Subject: [PATCH 3/4] chore: remove probes --- charts/hyperliquid/README.md | 6 ------ charts/hyperliquid/templates/statefulset.yaml | 7 ------- charts/hyperliquid/values.yaml | 14 -------------- 3 files changed, 27 deletions(-) diff --git a/charts/hyperliquid/README.md b/charts/hyperliquid/README.md index 61dde185..70b3fbf8 100644 --- a/charts/hyperliquid/README.md +++ b/charts/hyperliquid/README.md @@ -17,9 +17,6 @@ A Helm chart for running a hyperliquid node |-----|------|---------|-------------| | affinity | object | `{}` | | | imagePullSecrets | list | `[]` | | -| livenessProbe.initialDelaySeconds | int | `60` | | -| livenessProbe.periodSeconds | int | `120` | | -| livenessProbe.tcpSocket.port | string | `"httprpc"` | | | node.image.pullPolicy | string | `"IfNotPresent"` | | | node.image.repository | string | `"ghcr.io/chronicleprotocol/hyperliquid"` | | | node.image.tag | string | `"latest"` | | @@ -35,9 +32,6 @@ A Helm chart for running a hyperliquid node | pruner.image.repository | string | `"ghcr.io/chronicleprotocol/hyperliquid-pruner"` | | | pruner.image.tag | string | `"latest"` | | | pruner.resources | object | `{}` | | -| readinessProbe.initialDelaySeconds | int | `10` | | -| readinessProbe.periodSeconds | int | `10` | | -| readinessProbe.tcpSocket.port | string | `"httprpc"` | | | replicaCount | int | `1` | | | securityContext | object | `{}` | | | service.annotations | object | `{}` | | diff --git a/charts/hyperliquid/templates/statefulset.yaml b/charts/hyperliquid/templates/statefulset.yaml index 28982c65..48615804 100644 --- a/charts/hyperliquid/templates/statefulset.yaml +++ b/charts/hyperliquid/templates/statefulset.yaml @@ -39,10 +39,6 @@ spec: containerPort: {{ $val.port }} protocol: {{ $val.protocol }} {{- end }} - livenessProbe: - {{- toYaml .Values.livenessProbe | nindent 12 }} - readinessProbe: - {{- toYaml .Values.readinessProbe | nindent 12 }} {{- if .Values.node.resources }} resources: {{ .Values.node.resources | toYaml | nindent 10 }} @@ -72,9 +68,6 @@ spec: {{- toYaml .Values.affinity | nindent 8 }} tolerations: {{- toYaml .Values.tolerations | nindent 8 }} - {{- if ne .Values.node.serviceAccount "" }} - serviceAccountName: {{ .Values.node.serviceAccount | quote }} - {{- end }} volumes: {{- if .Values.node.persistence.hl_data.enabled }} - name: hl-data diff --git a/charts/hyperliquid/values.yaml b/charts/hyperliquid/values.yaml index 98f40209..aac5a949 100644 --- a/charts/hyperliquid/values.yaml +++ b/charts/hyperliquid/values.yaml @@ -62,20 +62,6 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: "" -# @default -- See `values.yaml` -livenessProbe: - tcpSocket: - port: httprpc - initialDelaySeconds: 60 - periodSeconds: 120 - -# @default -- See `values.yaml` -readinessProbe: - tcpSocket: - port: httprpc - initialDelaySeconds: 10 - periodSeconds: 10 - service: type: ClusterIP annotations: {} From 81ec9e8eb78a7d4571df7ad421adf3005fc42a6b Mon Sep 17 00:00:00 2001 From: Paulo Pigatto Date: Thu, 20 Mar 2025 22:06:47 -0300 Subject: [PATCH 4/4] chore: disable persistence by default --- charts/hyperliquid/README.md | 2 +- charts/hyperliquid/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/hyperliquid/README.md b/charts/hyperliquid/README.md index 70b3fbf8..401540bf 100644 --- a/charts/hyperliquid/README.md +++ b/charts/hyperliquid/README.md @@ -21,7 +21,7 @@ A Helm chart for running a hyperliquid node | node.image.repository | string | `"ghcr.io/chronicleprotocol/hyperliquid"` | | | node.image.tag | string | `"latest"` | | | node.persistence.hl_data.accessMode[0] | string | `"ReadWriteOnce"` | | -| node.persistence.hl_data.enabled | bool | `true` | | +| node.persistence.hl_data.enabled | bool | `false` | | | node.persistence.hl_data.size | string | `"200Gi"` | | | node.persistence.hl_data.storageClass | string | `"gp3"` | | | node.replicas | int | `1` | | diff --git a/charts/hyperliquid/values.yaml b/charts/hyperliquid/values.yaml index aac5a949..ad7fb06e 100644 --- a/charts/hyperliquid/values.yaml +++ b/charts/hyperliquid/values.yaml @@ -22,7 +22,7 @@ node: size: 200Gi accessMode: - ReadWriteOnce - enabled: true + enabled: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little