mirror of
https://github.com/bitnami/charts.git
synced 2026-03-01 06:58:20 +08:00
[bitnami/nginx] add updateStrategy for the deployment (#9067)
This commit is contained in:
committed by
GitHub
parent
e511753c1a
commit
6e1decd149
@@ -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
|
||||
|
||||
@@ -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` | `""` |
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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/
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user