This directory contains a Kubernetes chart to deploy a CrateDB cluster using a StatefulSet.
- Kubernetes 1.9+
- PV support on the underlying infrastructure
- follow up with helm/charts#8432, if PR completed this chart can be removed from here.
This chart will do the following:
- Implement a HA scalable CrateDB cluster using a Kubernetes StatefulSet.
To install the chart with the release name my-release
:
$ helm repo add oc https://orchestracities.github.io/charts/
$ helm dependency update
$ helm install --name my-release oc/crate
The following table lists the configurable parameters of the patroni chart and their default values.
Parameter | Description | Default |
---|---|---|
replicaCount |
Amount of pods to spawn | 3 |
image.name |
The image to pull | crate |
image.tag |
The version of the image to pull | 2.3.6 |
image.pullPolicy |
The pull policy | IfNotPresent |
resources |
Any resources you wish to assign to the pod | {} |
persistentVolume.accessModes |
Persistent Volume access modes | [ReadWriteOnce] |
persistentVolume.annotations |
Annotations for Persistent Volume Claim` | {} |
persistentVolume.size |
Persistent Volume size | 2Gi |
persistentVolume.storageClass |
Persistent Volume Storage Class | volume.alpha.kubernetes.io/storage-class: default |
nodeSelector |
Crate Node labels for pod assignment | {} |
tolerations |
Toleration labels for Crate pod assignment | [] |
affinity |
Affinity settings for Crate pod assignment | {} |
Specify each parameter using the --set key=value[,key=value] argument to helm install . |
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
$ helm install --name my-release -f values.yaml oc/crate
Tip: You can use the default values.yaml
To remove the spawned pods you can run a simple helm delete <release-name>
.
Helm will however preserve created persistent volume claims, to also remove them execute the commands below.
$ release=<release-name>
$ helm delete $release
$ kubectl delete pvc -l release=$release