Skip to content

Commit

Permalink
fix: make probes more robust (#347)
Browse files Browse the repository at this point in the history
* fix: make probes more robust

* fix name

* fix name
  • Loading branch information
barnabasbusa authored Dec 9, 2024
1 parent 5d46b54 commit 3902a23
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/erpc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: erpc
description: eRPC is a fault-tolerant EVM RPC proxy and re-org aware permanent caching solution. It is built with read-heavy use-cases in mind such as data indexing and high-load frontend usage.
home: https://github.com/erpc/erpc
type: application
version: 0.0.1
version: 0.0.2
maintainers:
- name: barnabasbusa
email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion charts/erpc/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# erpc

![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

eRPC is a fault-tolerant EVM RPC proxy and re-org aware permanent caching solution. It is built with read-heavy use-cases in mind such as data indexing and high-load frontend usage.

Expand Down
7 changes: 7 additions & 0 deletions charts/erpc/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,10 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Get the HTTP port from values or default to 4000
*/}}
{{- define "erpc.http" -}}
{{- default 4000 .Values.httpPort }}
{{- end }}
10 changes: 6 additions & 4 deletions charts/erpc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ config: |
httpHostV4: "0.0.0.0"
listenV6: true
httpHostV6: "[::]"
httpPort: 4000
httpPort: {{ .Values.httpPort }}
metrics:
enabled: true
hostV4: "0.0.0.0"
hostV6: "[::]"
port: 4001
port: {{ .Values.metricsPort }}
projects:
- id: main
Expand Down Expand Up @@ -91,15 +91,17 @@ annotations: {}
# -- Liveness probe
# @default -- See `values.yaml`
livenessProbe:
tcpSocket:
httpGet:
path: /healthcheck
port: http
initialDelaySeconds: 60
periodSeconds: 120

# -- Readiness probe
# @default -- See `values.yaml`
readinessProbe:
tcpSocket:
httpGet:
path: /healthcheck
port: http
initialDelaySeconds: 10
periodSeconds: 10
Expand Down

0 comments on commit 3902a23

Please sign in to comment.