Skip to content

Latest commit

 

History

History
 
 

crate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

CrateDB Helm Chart

This directory contains a Kubernetes chart to deploy a CrateDB cluster using a StatefulSet.

Prerequisites Details

  • Kubernetes 1.9+
  • PV support on the underlying infrastructure

StatefulSet Details

StatefulSet Caveats

Todo

  • follow up with helm/charts#8432, if PR completed this chart can be removed from here.

Chart Details

This chart will do the following:

  • Implement a HA scalable CrateDB cluster using a Kubernetes StatefulSet.

Installing the Chart

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

Connecting to CrateDB

Configuration

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

Cleanup

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