From a03634aac9eaddad299b4c029526afd97d6bee74 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Thu, 4 Apr 2024 13:12:16 +1000 Subject: [PATCH] feat(xatu-server): Add rollout strategy (#305) * feat(xatu-server): Add rollout strategy * feat(xatu-server): Add rollout strategy * refactor: Add strategy section to deployment.yaml --- charts/xatu-server/Chart.yaml | 2 +- charts/xatu-server/README.md | 3 ++- charts/xatu-server/templates/deployment.yaml | 4 ++++ charts/xatu-server/values.yaml | 8 ++++++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/charts/xatu-server/Chart.yaml b/charts/xatu-server/Chart.yaml index 8f083666..1e39529b 100644 --- a/charts/xatu-server/Chart.yaml +++ b/charts/xatu-server/Chart.yaml @@ -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 diff --git a/charts/xatu-server/README.md b/charts/xatu-server/README.md index a018b506..135a9413 100644 --- a/charts/xatu-server/README.md +++ b/charts/xatu-server/README.md @@ -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. @@ -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 | diff --git a/charts/xatu-server/templates/deployment.yaml b/charts/xatu-server/templates/deployment.yaml index e5e17569..92202e3d 100644 --- a/charts/xatu-server/templates/deployment.yaml +++ b/charts/xatu-server/templates/deployment.yaml @@ -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: diff --git a/charts/xatu-server/values.yaml b/charts/xatu-server/values.yaml index 84ed46cd..b38b39c2 100644 --- a/charts/xatu-server/values.yaml +++ b/charts/xatu-server/values.yaml @@ -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