Set rollingUpdate to null when updateStrategy is Recreate

Signed-off-by: juan131 <juan@bitnami.com>
This commit is contained in:
juan131
2019-03-18 12:04:10 +01:00
parent 1681f6144a
commit 1a45bba6ce
27 changed files with 104 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: cassandra
version: 2.3.2
version: 2.3.3
appVersion: 3.11.4
description: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients.
icon: https://bitnami.com/assets/stacks/cassandra/img/cassandra-stack-220x234.png

View File

@@ -16,7 +16,9 @@ spec:
replicas: {{ .Values.cluster.replicaCount }}
updateStrategy:
type: {{ .Values.statefulset.updateStrategy }}
{{- if .Values.statefulset.rollingUpdatePartition }}
{{- if (eq "Recreate" .Values.statefulset.updateStrategy) }}
rollingUpdate: null
{{- else if .Values.statefulset.rollingUpdatePartition }}
rollingUpdate:
partition: {{ .Values.statefulset.rollingUpdatePartition }}
{{- end }}

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: consul
version: 4.2.1
version: 4.2.2
appVersion: 1.4.3
description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
home: https://www.consul.io/

View File

@@ -74,6 +74,7 @@ The following tables lists the configurable parameters of the HashiCorp Consul c
| `securityContext.enabled` | Enable security context | `true` |
| `securityContext.fsGroup` | Group ID for the container | `1001` |
| `securityContext.runAsUser` | User ID for the container | `1001` |
| `updateStrategy.type` | Statefulset update strategy policy | `RollingUpdate` |
| `persistence.enabled` | Use a PVC to persist data | `true` |
| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) |
| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` |

View File

@@ -15,7 +15,10 @@ spec:
serviceName: "{{ template "consul.fullname" . }}"
replicas: {{ default 3 .Values.replicas }}
updateStrategy:
type: RollingUpdate
type: {{ .Values.updateStrategy.type }}
{{- if (eq "Recreate" .Values.updateStrategy.type) }}
rollingUpdate: null
{{- else }}
template:
metadata:
name: "{{ template "consul.fullname" . }}"

View File

@@ -70,6 +70,11 @@ domain: consul
## Consul raft multiplier.
raftMultiplier: '1'
## updateStrategy for Consul statefulset
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
updateStrategy:
type: RollingUpdate
## Consul data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning

View File

@@ -70,6 +70,11 @@ domain: consul
## Consul raft multiplier.
raftMultiplier: '1'
## updateStrategy for Consul statefulset
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
updateStrategy:
type: RollingUpdate
## Consul data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: elasticsearch
version: 4.6.5
version: 4.7.0
appVersion: 6.6.2
description: A highly scalable open-source full-text search and analytics engine
keywords:

View File

@@ -113,6 +113,8 @@ The following table lists the configurable parameters of the Elasticsearch chart
| `coordinating.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` |
| `data.name` | Data node pod name | `data` |
| `data.replicas` | Desired number of Elasticsearch data nodes nodes | `3` |
| `data.updateStrategy.type` | Update strategy for Data statefulset | `RollingUpdate` |
| `data.updateStrategy.rollingUpdatePartition` | Partition update strategy for Data statefulset | `nil` |
| `data.heapSize` | Data node heap size | `1024m` |
| `data.antiAffinity` | Data pod anti-affinity policy | `soft` |
| `data.nodeAffinity` | Data pod node affinity policy | `nil` |

View File

@@ -9,6 +9,14 @@ metadata:
release: {{ .Release.Name | quote }}
role: "data"
spec:
updateStrategy:
type: {{ .Values.data.updateStrategy.type }}
{{- if (eq "Recreate" .Values.data.updateStrategy.type) }}
rollingUpdate: null
{{- else if .Values.data.updateStrategy.rollingUpdatePartition }}
rollingUpdate:
partition: {{ .Values.data.updateStrategy.rollingUpdatePartition }}
{{- end }}
selector:
matchLabels:
app: {{ template "elasticsearch.name" . }}

View File

@@ -177,6 +177,11 @@ coordinating:
data:
name: data
replicas: 3
## updateStrategy for ElasticSearch Data statefulset
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
updateStrategy:
type: RollingUpdate
# rollingUpdatePartition
heapSize: 1024m
antiAffinity: "soft"
## node affinity

View File

@@ -180,6 +180,11 @@ coordinating:
data:
name: data
replicas: 2
## updateStrategy for ElasticSearch Data statefulset
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
updateStrategy:
type: RollingUpdate
# rollingUpdatePartition
heapSize: 1024m
antiAffinity: "soft"
## node affinity

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: etcd
version: 2.2.1
version: 2.2.2
appVersion: 3.3.12
description: etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines
keywords:

View File

@@ -17,7 +17,9 @@ spec:
replicas: {{ .Values.statefulset.replicaCount }}
updateStrategy:
type: {{ .Values.statefulset.updateStratey }}
{{- if .Values.statefulset.rollingUpdatePartition }}
{{- if (eq "Recreate" .Values.statefulset.updateStrategy) }}
rollingUpdate: null
{{- else if .Values.statefulset.rollingUpdatePartition }}
rollingUpdate:
partition: {{ .Values.statefulset.rollingUpdatePartition }}
{{- end }}

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: kafka
version: 1.7.1
version: 1.7.2
appVersion: 2.1.1
description: Apache Kafka is a distributed streaming platform.
keywords:

View File

@@ -55,7 +55,8 @@ The following tables lists the configurable parameters of the Kafka chart and th
| `image.pullPolicy` | Kafka image pull policy | `Always` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `image.debug` | Specify if debug values should be set | `false` |
| `updateStrategy` | Update strategy for the stateful set | `1` |
| `updateStrategy` | Update strategy for the stateful set | `RollingUpdate` |
| `rollingUpdatePartition` | Partition update strategy | `nil` |
| `replicaCount` | Number of Kafka nodes | `1` |
| `config` | Configuration file for Kafka | `nil` |
| `allowPlaintextListener` | Allow to use the PLAINTEXT listener | `true` |

View File

@@ -16,7 +16,13 @@ spec:
podManagementPolicy: "Parallel"
replicas: {{ .Values.replicaCount }}
updateStrategy:
type: {{ .Values.updateStratey }}
type: {{ .Values.updateStrategy | quote }}
{{- if (eq "Recreate" .Values.updateStrategy) }}
rollingUpdate: null
{{- else if .Values.rollingUpdatePartition }}
rollingUpdate:
partition: {{ .Values.rollingUpdatePartition }}
{{- end }}
selector:
matchLabels:
app: {{ template "kafka.name" . }}

View File

@@ -31,7 +31,16 @@ image:
## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging
debug: false
## StatefulSet controller supports automated updates. There are two valid update strategies: RollingUpdate and OnDelete
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
##
updateStrategy: RollingUpdate
## Partition update strategy
## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
##
# rollingUpdatePartition:
replicaCount: 3
config: |-

View File

@@ -31,7 +31,16 @@ image:
## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging
debug: false
## StatefulSet controller supports automated updates. There are two valid update strategies: RollingUpdate and OnDelete
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
##
updateStrategy: RollingUpdate
## Partition update strategy
## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
##
# rollingUpdatePartition:
replicaCount: 1
config: |-

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: mysql
version: 4.4.1
version: 4.5.0
appVersion: 5.7.25
description: Chart to create a Highly available MySQL cluster
keywords:

View File

@@ -67,6 +67,7 @@ The following tables lists the configurable parameters of the MySQL chart and th
| `replication.user` | MySQL replication user | `replicator` |
| `replication.password` | MySQL replication user password | _random 10 character alphanumeric string_ |
| `master.antiAffinity` | Master pod anti-affinity policy | `soft` |
| `master.updateStrategy.type` | Master statefulset update strategy policy | `RollingUpdate` |
| `master.persistence.enabled` | Enable persistence using a `PersistentVolumeClaim` | `true` |
| `master.persistence.existingClaim` | Provide an existing `PersistentVolumeClaim` | `nil` |
| `master.persistence.mountPath` | Configure `PersistentVolumeClaim` mount path | `/bitnami/mysql` |
@@ -90,6 +91,7 @@ The following tables lists the configurable parameters of the MySQL chart and th
| `master.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe (master) | `3` |
| `slave.replicas` | Desired number of slave replicas | `1` |
| `slave.antiAffinity` | Slave pod anti-affinity policy | `soft` |
| `slave.updateStrategy.type` | Slave statefulset update strategy policy | `RollingUpdate` |
| `slave.persistence.enabled` | Enable persistence using a `PersistentVolumeClaim` | `true` |
| `slave.persistence.mountPath` | Configure `PersistentVolumeClaim` mount path | `/bitnami/mysql` |
| `slave.persistence.annotations` | Persistent Volume Claim annotations | `{}` |

View File

@@ -17,7 +17,10 @@ spec:
serviceName: "{{ template "mysql.master.fullname" . }}"
replicas: 1
updateStrategy:
type: RollingUpdate
type: {{ .Values.master.updateStrategy.type }}
{{- if (eq "Recreate" .Values.master.updateStrategy.type) }}
rollingUpdate: null
{{- end }}
template:
metadata:
labels:

View File

@@ -18,7 +18,10 @@ spec:
serviceName: "{{ template "mysql.slave.fullname" . }}"
replicas: {{ .Values.slave.replicas }}
updateStrategy:
type: RollingUpdate
type: {{ .Values.slave.updateStrategy.type }}
{{- if (eq "Recreate" .Values.slave.updateStrategy.type) }}
rollingUpdate: null
{{- end }}
template:
metadata:
labels:

View File

@@ -87,6 +87,10 @@ replication:
master:
antiAffinity: soft
## updateStrategy for MySQL Master StatefulSet
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
updateStrategy:
type: RollingUpdate
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
@@ -176,6 +180,10 @@ master:
slave:
replicas: 2
antiAffinity: soft
## updateStrategy for MySQL Slave StatefulSet
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
updateStrategy:
type: RollingUpdate
persistence:
## If true, use a Persistent Volume Claim, If false, use emptyDir
##

View File

@@ -88,6 +88,10 @@ replication:
master:
antiAffinity: soft
## updateStrategy for MySQL Master StatefulSet
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
updateStrategy:
type: RollingUpdate
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
@@ -177,6 +181,10 @@ master:
slave:
replicas: 1
antiAffinity: soft
## updateStrategy for MySQL Slave StatefulSet
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
updateStrategy:
type: RollingUpdate
persistence:
## If true, use a Persistent Volume Claim, If false, use emptyDir
##

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: zookeeper
version: 1.4.1
version: 1.4.2
appVersion: 3.4.13
description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications.
keywords:

View File

@@ -13,7 +13,9 @@ spec:
podManagementPolicy: {{ .Values.podManagementPolicy | quote }}
updateStrategy:
type: {{ .Values.updateStrategy | quote }}
{{- if .Values.rollingUpdatePartition }}
{{- if (eq "Recreate" .Values.updateStrategy) }}
rollingUpdate: null
{{- else if .Values.rollingUpdatePartition }}
rollingUpdate:
partition: {{ .Values.rollingUpdatePartition }}
{{- end }}