Skip to content

Commit

Permalink
PM-1911 make health checks configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
simisimis committed Jul 29, 2024
1 parent b08ad87 commit aa5aa49
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
4 changes: 4 additions & 0 deletions mina-payout-reports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ helmfile status
| payoutReportsApi.ingress.enabled | bool | `false` | Whether to create a backend Ingress |
| payoutReportsApi.ingress.hosts | list | `[]` | The Ingress Hosts |
| payoutReportsApi.ingress.tls | list | `[]` | The TLS configuration |
| payoutReportsApi.livenessProbe | object | `{}` | Liveness check configuration |
| payoutReportsApi.nodeSelector | object | `{}` | Node selector labels |
| payoutReportsApi.payoutsDB.host | string | `"localhost"` | Delegation Program Payouts Database Host |
| payoutReportsApi.payoutsDB.name | string | `"postgres"` | Delegation Program Payouts Database Name |
Expand All @@ -73,6 +74,7 @@ helmfile status
| payoutReportsApi.payoutsDB.user | string | `"postgres"` | Delegation Program Payouts Database User |
| payoutReportsApi.podAnnotations | object | `{}` | Annotations to add to the pods |
| payoutReportsApi.podSecurityContext | object | `{}` | The Pod Security Context |
| payoutReportsApi.readinessProbe | object | `{}` | Readiness check configuration |
| payoutReportsApi.replicaCount | int | `1` | The number of replicas |
| payoutReportsApi.resources | object | `{}` | Resource limitations for the pods |
| payoutReportsApi.s3Bucket | string | `""` | S3 bucket where to store reports |
Expand All @@ -96,9 +98,11 @@ helmfile status
| payoutReportsWeb.ingress.enabled | bool | `false` | Whether to create a frontend Ingress |
| payoutReportsWeb.ingress.hosts | list | `[]` | The Ingress Hosts |
| payoutReportsWeb.ingress.tls | list | `[]` | The TLS configuration |
| payoutReportsWeb.livenessProbe | object | `{}` | Liveness check configuration |
| payoutReportsWeb.nodeSelector | object | `{}` | Node selector labels |
| payoutReportsWeb.podAnnotations | object | `{}` | Annotations to add to the pods |
| payoutReportsWeb.podSecurityContext | object | `{}` | The Pod Security Context |
| payoutReportsWeb.readinessProbe | object | `{}` | Readiness check configuration |
| payoutReportsWeb.replicaCount | int | `1` | The number of replicas |
| payoutReportsWeb.resources | object | `{}` | Resource limitations for the pods |
| payoutReportsWeb.securityContext | object | `{}` | The Security Context |
Expand Down
8 changes: 2 additions & 6 deletions mina-payout-reports/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,9 @@ spec:
containerPort: {{ .service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /health
port: http
{{- toYaml .livenessProbe | nindent 12 }}
readinessProbe:
httpGet:
path: /health
port: http
{{- toYaml .readinessProbe | nindent 12 }}
resources:
{{- toYaml .resources | nindent 12 }}
{{- with .nodeSelector }}
Expand Down
10 changes: 2 additions & 8 deletions mina-payout-reports/templates/deployment-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,9 @@ spec:
containerPort: {{ .service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 120
{{- toYaml .livenessProbe | nindent 12 }}
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 120
{{- toYaml .readinessProbe | nindent 12 }}
resources:
{{- toYaml .resources | nindent 12 }}
{{- with .nodeSelector }}
Expand Down
12 changes: 12 additions & 0 deletions mina-payout-reports/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ payoutReportsWeb:
# name: mySecret
# key: bar offline:

# -- Liveness check configuration
livenessProbe: {}

# -- Readiness check configuration
readinessProbe: {}

# -- Resource limitations for the pods
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down Expand Up @@ -205,6 +211,12 @@ payoutReportsApi:
# name: mySecret
# key: bar offline:

# -- Liveness check configuration
livenessProbe: {}

# -- Readiness check configuration
readinessProbe: {}

# -- Resource limitations for the pods
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit aa5aa49

Please sign in to comment.