diff --git a/charts/erigon/README.md b/charts/erigon/README.md index 412aa75d..895cc6f7 100644 --- a/charts/erigon/README.md +++ b/charts/erigon/README.md @@ -176,7 +176,7 @@ We do not recommend that you upgrade the application by overriding `image.tag`. | statefulNode.p2pNodePort.port | NodePort to be used. Must be unique. | int | `31000` | | statefulNode.podAnnotations | Annotations for the `Pod` | object | `{}` | | statefulNode.podSecurityContext | Pod-wide security context | object | `{"fsGroup":101337,"runAsGroup":101337,"runAsNonRoot":true,"runAsUser":101337}` | - | statefulNode.readinessProbe | Sets a readinessProbe configuration for the container | object | `{"grpc":{"port":9090}}` | + | statefulNode.readinessProbe | Sets a readinessProbe configuration for the container | object | `{}` | | statefulNode.resources | | object | `{}` | | statefulNode.restoreSnapshot.enabled | Enable initialising Erigon state from a remote snapshot | bool | `false` | | statefulNode.restoreSnapshot.snapshotUrl | URL for snapshot to download and extract to restore state | string | `""` | diff --git a/charts/erigon/templates/stateful-node/statefulset.yaml b/charts/erigon/templates/stateful-node/statefulset.yaml index b26c50da..8a3ccb9c 100644 --- a/charts/erigon/templates/stateful-node/statefulset.yaml +++ b/charts/erigon/templates/stateful-node/statefulset.yaml @@ -255,6 +255,13 @@ spec: {{- if $values.readinessProbe }} readinessProbe: {{ toYaml $values.readinessProbe | nindent 12 }} + {{- else }} + readinessProbe: + # This currently requires GRPCContainerProbe feature gate to be enabled on the kubelet + # https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-grpc-liveness-probe + # https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/ + grpc: + port: 9090 # named ports not supported yet by grpc probes {{- end }} {{- if $values.livenessProbe }} livenessProbe: diff --git a/charts/erigon/values.yaml b/charts/erigon/values.yaml index fc1bd90f..a05f2f5c 100644 --- a/charts/erigon/values.yaml +++ b/charts/erigon/values.yaml @@ -118,12 +118,7 @@ statefulNode: # These will be directly copied into the StatefulSet manifest. # -- Sets a readinessProbe configuration for the container - readinessProbe: - # This currently requires GRPCContainerProbe feature gate to be enabled on the kubelet - # https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-grpc-liveness-probe - # https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/ - grpc: - port: 9090 # named ports not supported yet by grpc probes + readinessProbe: {} # -- Sets a livenessProbe configuration for the container livenessProbe: {} diff --git a/charts/nimbus/README.md b/charts/nimbus/README.md index d29f6f6a..efd5d965 100644 --- a/charts/nimbus/README.md +++ b/charts/nimbus/README.md @@ -128,7 +128,7 @@ We do not recommend that you upgrade the application by overriding `image.tag`. | nimbus.p2pNodePort.port | NodePort to be used. Must be unique. | int | `31000` | | nimbus.podAnnotations | Annotations for the `Pod` | object | `{}` | | nimbus.podSecurityContext | Pod-wide security context | object | `{"fsGroup":101337,"runAsGroup":101337,"runAsNonRoot":true,"runAsUser":101337}` | - | nimbus.readinessProbe | Sets a readinessProbe configuration for the container | object | `{"initialDelaySeconds":10,"periodSeconds":10,"tcpSocket":{"port":"http-nimbus"}}` | + | nimbus.readinessProbe | Sets a readinessProbe configuration for the container | object | `{}` | | nimbus.resources | | object | `{}` | | nimbus.rollingUpdatePartition | When using a RollingUpdate update strategy in the StatefulSet, sets a partition index to only update PODs with that index or higher | int | `0` | | nimbus.service.ports.http-metrics | Service Port to expose Prometheus metrics on | int | `8008` | diff --git a/charts/nimbus/templates/nimbus/statefulset.yaml b/charts/nimbus/templates/nimbus/statefulset.yaml index e8896ef8..6fd8d754 100644 --- a/charts/nimbus/templates/nimbus/statefulset.yaml +++ b/charts/nimbus/templates/nimbus/statefulset.yaml @@ -256,6 +256,12 @@ spec: {{- if $values.readinessProbe }} readinessProbe: {{ toYaml $values.readinessProbe | nindent 12 }} + {{- else }} + readinessProbe: + tcpSocket: + port: http-nimbus + initialDelaySeconds: 10 + periodSeconds: 10 {{- end }} {{- if $values.livenessProbe }} livenessProbe: diff --git a/charts/nimbus/values.yaml b/charts/nimbus/values.yaml index c8d57718..a9099ee1 100644 --- a/charts/nimbus/values.yaml +++ b/charts/nimbus/values.yaml @@ -114,11 +114,7 @@ nimbus: # These will be directly copied into the StatefulSet manifest. # -- Sets a readinessProbe configuration for the container - readinessProbe: - tcpSocket: - port: http-nimbus - initialDelaySeconds: 10 - periodSeconds: 10 + readinessProbe: {} # -- Sets a livenessProbe configuration for the container livenessProbe: {}