Skip to content

Commit 893be75

Browse files
authored
feat(charts/xatu): add lifecycle hooks (ethpandaops#156)
1 parent 4c8b5f5 commit 893be75

File tree

16 files changed

+64
-16
lines changed

16 files changed

+64
-16
lines changed

charts/xatu-discovery/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: xatu-discovery
33
description: Ethereum p2p monitoring tool that discovers node records.
44
home: https://github.com/ethpandaops/xatu
55
type: application
6-
version: 0.0.2
6+
version: 0.0.3
77
maintainers:
88
- name: samcm
99

charts/xatu-discovery/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# xatu-discovery
33

4-
![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)
4+
![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
Ethereum p2p monitoring tool that discovers node records.
77

@@ -65,6 +65,7 @@ Ethereum p2p monitoring tool that discovers node records.
6565
| image.tag | string | `"latest"` | xatu container image tag |
6666
| imagePullSecrets | list | `[]` | Image pull secrets for Docker images |
6767
| initContainers | list | `[]` | Additional init containers |
68+
| lifecycle | object | See `values.yaml` | Lifecycle hooks |
6869
| livenessProbe | object | See `values.yaml` | Liveness probe |
6970
| nameOverride | string | `""` | Overrides the chart's name |
7071
| nodeSelector | object | `{}` | Node selector for pods |
@@ -91,5 +92,5 @@ Ethereum p2p monitoring tool that discovers node records.
9192
| serviceMonitor.scheme | string | `"http"` | ServiceMonitor scheme |
9293
| serviceMonitor.scrapeTimeout | string | `"30s"` | ServiceMonitor scrape timeout |
9394
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
94-
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
95+
| terminationGracePeriodSeconds | int | `90` | How long to wait until the pod is forcefully terminated |
9596
| tolerations | list | `[]` | Tolerations for pods |

charts/xatu-discovery/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ spec:
7676
{{- toYaml .Values.livenessProbe | nindent 12 }}
7777
readinessProbe:
7878
{{- toYaml .Values.readinessProbe | nindent 12 }}
79+
lifecycle:
80+
{{- toYaml .Values.lifecycle | nindent 12 }}
7981
resources:
8082
{{- toYaml .Values.resources | nindent 12 }}
8183
env:

charts/xatu-discovery/values.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,17 @@ serviceAccount:
167167
# If not set and create is true, a name is generated using the fullname template
168168
name: ""
169169

170+
# -- Lifecycle hooks
171+
# @default -- See `values.yaml`
172+
lifecycle:
173+
preStop:
174+
exec:
175+
command:
176+
- /bin/sleep
177+
- "30"
178+
170179
# -- How long to wait until the pod is forcefully terminated
171-
terminationGracePeriodSeconds: 30
180+
terminationGracePeriodSeconds: 90
172181

173182
# -- Tolerations for pods
174183
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

charts/xatu-mimicry/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: xatu-mimicry
33
description: Ethereum p2p monitoring tool that collects data from the execution layer.
44
home: https://github.com/ethpandaops/xatu
55
type: application
6-
version: 0.0.2
6+
version: 0.0.3
77
maintainers:
88
- name: samcm
99

charts/xatu-mimicry/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# xatu-mimicry
33

4-
![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)
4+
![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
Ethereum p2p monitoring tool that collects data from the execution layer.
77

@@ -43,6 +43,7 @@ Ethereum p2p monitoring tool that collects data from the execution layer.
4343
| image.tag | string | `"latest"` | xatu container image tag |
4444
| imagePullSecrets | list | `[]` | Image pull secrets for Docker images |
4545
| initContainers | list | `[]` | Additional init containers |
46+
| lifecycle | object | See `values.yaml` | Lifecycle hooks |
4647
| livenessProbe | object | See `values.yaml` | Liveness probe |
4748
| nameOverride | string | `""` | Overrides the chart's name |
4849
| nodeSelector | object | `{}` | Node selector for pods |
@@ -69,5 +70,5 @@ Ethereum p2p monitoring tool that collects data from the execution layer.
6970
| serviceMonitor.scheme | string | `"http"` | ServiceMonitor scheme |
7071
| serviceMonitor.scrapeTimeout | string | `"30s"` | ServiceMonitor scrape timeout |
7172
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
72-
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
73+
| terminationGracePeriodSeconds | int | `90` | How long to wait until the pod is forcefully terminated |
7374
| tolerations | list | `[]` | Tolerations for pods |

charts/xatu-mimicry/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ spec:
7676
{{- toYaml .Values.livenessProbe | nindent 12 }}
7777
readinessProbe:
7878
{{- toYaml .Values.readinessProbe | nindent 12 }}
79+
lifecycle:
80+
{{- toYaml .Values.lifecycle | nindent 12 }}
7981
resources:
8082
{{- toYaml .Values.resources | nindent 12 }}
8183
env:

charts/xatu-mimicry/values.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,17 @@ serviceAccount:
127127
# If not set and create is true, a name is generated using the fullname template
128128
name: ""
129129

130+
# -- Lifecycle hooks
131+
# @default -- See `values.yaml`
132+
lifecycle:
133+
preStop:
134+
exec:
135+
command:
136+
- /bin/sleep
137+
- "30"
138+
130139
# -- How long to wait until the pod is forcefully terminated
131-
terminationGracePeriodSeconds: 30
140+
terminationGracePeriodSeconds: 90
132141

133142
# -- Tolerations for pods
134143
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

charts/xatu-sentry/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: xatu-sentry
33
description: Ethereum p2p monitoring tool that runs along side a Ethereum consensus client and collects data via the consensus client's Beacon API.
44
home: https://github.com/ethpandaops/xatu
55
type: application
6-
version: 0.0.3
6+
version: 0.0.4
77
maintainers:
88
- name: samcm
99

charts/xatu-sentry/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# xatu-sentry
33

4-
![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
Ethereum p2p monitoring tool that runs along side a Ethereum consensus client and collects data via the consensus client's Beacon API.
77

@@ -41,6 +41,7 @@ Ethereum p2p monitoring tool that runs along side a Ethereum consensus client an
4141
| image.tag | string | `"latest"` | xatu container image tag |
4242
| imagePullSecrets | list | `[]` | Image pull secrets for Docker images |
4343
| initContainers | list | `[]` | Additional init containers |
44+
| lifecycle | object | See `values.yaml` | Lifecycle hooks |
4445
| livenessProbe | object | See `values.yaml` | Liveness probe |
4546
| nameOverride | string | `""` | Overrides the chart's name |
4647
| nodeSelector | object | `{}` | Node selector for pods |
@@ -67,5 +68,5 @@ Ethereum p2p monitoring tool that runs along side a Ethereum consensus client an
6768
| serviceMonitor.scheme | string | `"http"` | ServiceMonitor scheme |
6869
| serviceMonitor.scrapeTimeout | string | `"30s"` | ServiceMonitor scrape timeout |
6970
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
70-
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
71+
| terminationGracePeriodSeconds | int | `90` | How long to wait until the pod is forcefully terminated |
7172
| tolerations | list | `[]` | Tolerations for pods |

charts/xatu-sentry/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ spec:
7676
{{- toYaml .Values.livenessProbe | nindent 12 }}
7777
readinessProbe:
7878
{{- toYaml .Values.readinessProbe | nindent 12 }}
79+
lifecycle:
80+
{{- toYaml .Values.lifecycle | nindent 12 }}
7981
resources:
8082
{{- toYaml .Values.resources | nindent 12 }}
8183
env:

charts/xatu-sentry/values.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,17 @@ serviceAccount:
123123
# If not set and create is true, a name is generated using the fullname template
124124
name: ""
125125

126+
# -- Lifecycle hooks
127+
# @default -- See `values.yaml`
128+
lifecycle:
129+
preStop:
130+
exec:
131+
command:
132+
- /bin/sleep
133+
- "30"
134+
126135
# -- How long to wait until the pod is forcefully terminated
127-
terminationGracePeriodSeconds: 30
136+
terminationGracePeriodSeconds: 90
128137

129138
# -- Tolerations for pods
130139
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

charts/xatu-server/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: xatu-server
33
description: Ethereum p2p monitoring tool that collects events from and controls various Xatu clients.
44
home: https://github.com/ethpandaops/xatu
55
type: application
6-
version: 0.0.4
6+
version: 0.0.5
77
maintainers:
88
- name: samcm
99

charts/xatu-server/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# xatu-server
33

4-
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.0.5](https://img.shields.io/badge/Version-0.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
Ethereum p2p monitoring tool that collects events from and controls various Xatu clients.
77

@@ -58,6 +58,7 @@ Ethereum p2p monitoring tool that collects events from and controls various Xatu
5858
| ingress.hosts[0].paths | list | `[]` | |
5959
| ingress.tls | list | `[]` | Ingress TLS |
6060
| initContainers | list | `[]` | Additional init containers |
61+
| lifecycle | object | See `values.yaml` | Lifecycle hooks |
6162
| livenessProbe | object | See `values.yaml` | Liveness probe |
6263
| nameOverride | string | `""` | Overrides the chart's name |
6364
| nodeSelector | object | `{}` | Node selector for pods |
@@ -84,5 +85,5 @@ Ethereum p2p monitoring tool that collects events from and controls various Xatu
8485
| serviceMonitor.scheme | string | `"http"` | ServiceMonitor scheme |
8586
| serviceMonitor.scrapeTimeout | string | `"30s"` | ServiceMonitor scrape timeout |
8687
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
87-
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
88+
| terminationGracePeriodSeconds | int | `90` | How long to wait until the pod is forcefully terminated |
8889
| tolerations | list | `[]` | Tolerations for pods |

charts/xatu-server/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ spec:
8282
{{- toYaml .Values.livenessProbe | nindent 12 }}
8383
readinessProbe:
8484
{{- toYaml .Values.readinessProbe | nindent 12 }}
85+
lifecycle:
86+
{{- toYaml .Values.lifecycle | nindent 12 }}
8587
resources:
8688
{{- toYaml .Values.resources | nindent 12 }}
8789
env:

charts/xatu-server/values.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,17 @@ serviceAccount:
163163
# If not set and create is true, a name is generated using the fullname template
164164
name: ""
165165

166+
# -- Lifecycle hooks
167+
# @default -- See `values.yaml`
168+
lifecycle:
169+
preStop:
170+
exec:
171+
command:
172+
- /bin/sleep
173+
- "30"
174+
166175
# -- How long to wait until the pod is forcefully terminated
167-
terminationGracePeriodSeconds: 30
176+
terminationGracePeriodSeconds: 90
168177

169178
# -- Tolerations for pods
170179
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

0 commit comments

Comments
 (0)