I have been working with Cass Operator a lot as part of my work on K8ssandra. I have a new favorite feature that I want to discuss. That feature is the podTemplateSpec property of CassandraDatacenter.

The podTemplateSpec property is for advanced use cases. It is essentially a hook to customize the underlying StatefulSets that Cass Operator creates.

Let’s look at an example to illustrate how it can be put to use.

apiVersion: cassandra.datastax.com/v1beta1 kind: CassandraDatacenter metadata: name: dc1 spec: clusterName: demo serverType: cassandra serverVersion: 3.11.7 managementApiAuth: insecure: {} size: 3 podTemplateSpec: spec: initContainers: - name: echo-username image: busybox imagePullPolicy: IfNotPresent…

John Sanda

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store