[bitnami/nginx] add updateStrategy for the deployment (#9067)

This commit is contained in:
Yevhen Polianychko
2022-02-22 09:38:10 +02:00
committed by GitHub
parent e511753c1a
commit 6e1decd149
4 changed files with 13 additions and 1 deletions

View File

@@ -25,4 +25,4 @@ name: nginx
sources:
- https://github.com/bitnami/bitnami-docker-nginx
- https://www.nginx.org
version: 9.7.9
version: 9.8.0

View File

@@ -97,6 +97,8 @@ The command removes all the Kubernetes components associated with the chart and
| Name | Description | Value |
| --------------------------------------- | ----------------------------------------------------------------------------------------- | ------- |
| `replicaCount` | Number of NGINX replicas to deploy | `1` |
| `updateStrategy.type` | NGINX deployment strategy type | `""` |
| `updateStrategy.rollingUpdate` | NGINX deployment rolling update configuration parameters | `{}` |
| `podLabels` | Additional labels for NGINX pods | `{}` |
| `podAnnotations` | Annotations for NGINX pods | `{}` |
| `podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |

View File

@@ -11,6 +11,9 @@ metadata:
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
{{- if .Values.updateStrategy }}
strategy: {{- toYaml .Values.updateStrategy | nindent 4 }}
{{- end }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
template:

View File

@@ -98,6 +98,13 @@ extraEnvVarsSecret: ""
## @param replicaCount Number of NGINX replicas to deploy
##
replicaCount: 1
## @param updateStrategy.type NGINX deployment strategy type
## @param updateStrategy.rollingUpdate NGINX deployment rolling update configuration parameters
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
##
updateStrategy:
type: RollingUpdate
rollingUpdate: {}
## @param podLabels Additional labels for NGINX pods
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
##