Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Add podManagementPolicy support to incubator/cassandra (#3726)
Browse files Browse the repository at this point in the history
* Add podManagementPolicy support to incubator/cassandra

* Raise chart version
  • Loading branch information
simt2 authored and k8s-ci-robot committed Feb 20, 2018
1 parent 402d811 commit ce0b00d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion incubator/cassandra/Chart.yaml
@@ -1,5 +1,5 @@
name: cassandra
version: 0.2.1
version: 0.2.2
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.
Expand Down
1 change: 1 addition & 0 deletions incubator/cassandra/README.md
Expand Up @@ -95,6 +95,7 @@ The following tables lists the configurable parameters of the Cassandra chart an
| `persistence.size` | Size of data volume | `10Gi` |
| `resources` | CPU/Memory resource requests/limits | Memory: `4Gi`, CPU: `2` |
| `service.type` | k8s service type exposing ports, e.g. `NodePort`| `ClusterIP` |
| `podManagementPolicy` | podManagementPolicy of the StatefulSet | `OrderedReady` |
| `updateStrategy.type` | UpdateStrategy of the StatefulSet | `OnDelete` |

## Scale cassandra
Expand Down
1 change: 1 addition & 0 deletions incubator/cassandra/templates/cassandra-statefulset.yaml
Expand Up @@ -46,6 +46,7 @@ metadata:
spec:
serviceName: {{ template "cassandra.fullname" . }}
replicas: {{ .Values.config.cluster_size }}
podManagementPolicy: {{ .Values.podManagementPolicy }}
updateStrategy:
type: {{ .Values.updateStrategy.type }}
template:
Expand Down
1 change: 1 addition & 0 deletions incubator/cassandra/values.yaml
Expand Up @@ -72,5 +72,6 @@ config:
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podLabels: {}

podManagementPolicy: OrderedReady
updateStrategy:
type: OnDelete

0 comments on commit ce0b00d

Please sign in to comment.