Skip to content

Commit

Permalink
feat(xatu-server): Add rollout strategy (#305)
Browse files Browse the repository at this point in the history
* feat(xatu-server): Add rollout strategy

* feat(xatu-server): Add rollout strategy

* refactor: Add strategy section to deployment.yaml
  • Loading branch information
samcm authored Apr 4, 2024
1 parent 9965595 commit a03634a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/xatu-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: xatu-server
description: Ethereum p2p monitoring tool that collects events from and controls various Xatu clients.
home: https://github.com/ethpandaops/xatu
type: application
version: 0.0.11
version: 0.0.12
maintainers:
- name: samcm
email: sam.calder-mason@ethereum.org
Expand Down
3 changes: 2 additions & 1 deletion charts/xatu-server/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# xatu-server

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

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

Expand Down Expand Up @@ -86,6 +86,7 @@ Ethereum p2p monitoring tool that collects events from and controls various Xatu
| serviceMonitor.scheme | string | `"http"` | ServiceMonitor scheme |
| serviceMonitor.scrapeTimeout | string | `"30s"` | ServiceMonitor scrape timeout |
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
| strategy | object | `{"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"}` | Deployment rollout strategy |
| terminationGracePeriodSeconds | int | `90` | How long to wait until the pod is forcefully terminated |
| tolerations | list | `[]` | Tolerations for pods |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pods |
4 changes: 4 additions & 0 deletions charts/xatu-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
annotations:
{{- toYaml .Values.annotations | nindent 4 }}
spec:
{{- if .Values.strategy }}
strategy:
{{- toYaml .Values.strategy | nindent 4 }}
{{- end }}
replicas: {{ .Values.replicas }}
selector:
matchLabels:
Expand Down
8 changes: 8 additions & 0 deletions charts/xatu-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ extraPorts: []
# -- Additional env variables
extraEnv: []

# -- Deployment rollout strategy
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%


serviceMonitor:
# -- If true, a ServiceMonitor CRD is created for a prometheus operator
# https://github.com/coreos/prometheus-operator
Expand Down

0 comments on commit a03634a

Please sign in to comment.