Skip to content

Commit 237544f

Browse files
fix(api): add deployment strategy
1 parent 35117d8 commit 237544f

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

charts/blobscan-api/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ icon: https://raw.githubusercontent.com/Blobscan/blobscan/main/.github/assets/lo
66
sources:
77
- https://github.com/blobscan/blobscan/
88
type: application
9-
version: 0.7.2
9+
version: 0.7.3
1010
maintainers:
1111
- name: PabloCastellano
1212
email: pablo@anche.no

charts/blobscan-api/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# blobscan-api
33

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

66
Blobscan API
77

@@ -146,5 +146,6 @@ Blobscan API
146146
| serviceMonitor.scheme | string | `"http"` | ServiceMonitor scheme |
147147
| serviceMonitor.scrapeTimeout | string | `"30s"` | ServiceMonitor scrape timeout |
148148
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
149+
| strategy | object | See `values.yaml` | Deployment strategy configuration |
149150
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
150151
| tolerations | list | `[]` | Tolerations for pods |

charts/blobscan-api/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ metadata:
88
{{- toYaml .Values.annotations | nindent 4 }}
99
spec:
1010
replicas: {{ .Values.replicas }}
11+
{{- if .Values.strategy }}
12+
strategy:
13+
{{- toYaml .Values.strategy | nindent 4 }}
14+
{{- end }}
1115
selector:
1216
matchLabels:
1317
{{- include "blobscan.selectorLabels" . | nindent 6 }}

charts/blobscan-api/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ fullnameOverride: ""
77
# -- Number of replicas
88
replicas: 1
99

10+
# -- Deployment strategy configuration
11+
# @default -- See `values.yaml`
12+
strategy:
13+
type: RollingUpdate
14+
rollingUpdate:
15+
maxSurge: 0
16+
maxUnavailable: 1
17+
1018
image:
1119
# -- blobscan-api container image repository
1220
repository: blossomlabs/blobscan-api

0 commit comments

Comments
 (0)