Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add updateStrategy to deployment and values files #39

Merged
merged 2 commits into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generated-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: generated-service
description: A Helm chart for the generated-service component of Amplication

type: application
version: 2.0.11
version: 2.0.12
appVersion: "0.0.0"

sources:
Expand Down
2 changes: 2 additions & 0 deletions generated-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
selector:
matchLabels:
{{- include "generated-service.selectorLabels" . | nindent 6 }}
strategy:
{{ toYaml .Values.strategy | indent 4 }}
template:
metadata:
{{- if or .Values.podAnnotations .Values.variables.configmap }}
Expand Down
7 changes: 7 additions & 0 deletions generated-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ resources:
requests: {}
limits: {}

## Configuration for deployment update strategy
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate

## @param volumes Reference for the volumes that are to be attaches to the deployment - check the deployment.yaml for the added suffix
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
## Example:
Expand Down
2 changes: 1 addition & 1 deletion git-sync-manager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: git-sync-manager
description: A Helm chart for the git-sync-manager component of Amplication

type: application
version: 2.0.2
version: 2.0.3
appVersion: "0.0.0"

sources:
Expand Down
2 changes: 2 additions & 0 deletions git-sync-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
selector:
matchLabels:
{{- include "git-sync-manager.selectorLabels" . | nindent 6 }}
strategy:
{{ toYaml .Values.strategy | indent 4 }}
template:
metadata:
{{- if or .Values.podAnnotations .Values.variables.configmap }}
Expand Down
7 changes: 7 additions & 0 deletions git-sync-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ resources:
requests: {}
limits: {}

## Configuration for deployment update strategy
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate

## Horizontal Pod Autoscaling configuration
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/
## @param autoscaling.enabled Enable auto scaling (fallback to replicaCount if equals false)
Expand Down
2 changes: 1 addition & 1 deletion plugin-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: plugin-api
description: A Helm chart for the plugin-api component of Amplication

type: application
version: 2.0.9
version: 2.0.10
appVersion: "0.0.0"

sources:
Expand Down
2 changes: 2 additions & 0 deletions plugin-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
selector:
matchLabels:
{{- include "plugin-api.selectorLabels" . | nindent 6 }}
strategy:
{{ toYaml .Values.strategy | indent 4 }}
template:
metadata:
{{- if or .Values.podAnnotations .Values.variables.configmap }}
Expand Down
7 changes: 7 additions & 0 deletions plugin-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ resources:
requests: {}
limits: {}

## Configuration for deployment update strategy
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate

## Horizontal Pod Autoscaling configuration
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/
## @param autoscaling.enabled Enable auto scaling (fallback to replicaCount if equals false)
Expand Down
2 changes: 1 addition & 1 deletion server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: server
description: A Helm chart for the server component of Amplication

type: application
version: 2.0.9
version: 2.0.10
appVersion: "0.0.0"

sources:
Expand Down
2 changes: 2 additions & 0 deletions server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
selector:
matchLabels:
{{- include "server.selectorLabels" . | nindent 6 }}
strategy:
{{ toYaml .Values.strategy | indent 4 }}
template:
metadata:
{{- if or .Values.podAnnotations .Values.variables.configmap }}
Expand Down
6 changes: 6 additions & 0 deletions server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ resources:
requests: {}
limits: {}

## Configuration for deployment update strategy
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate

## @param cronJob.graphql.enabled Whether to enable the graphql cronjob
## @param cronJob.graphql.schedule The unix style cronjob timer
Expand Down