Hi, i am trying to test k8ssandra-operator in a KOPS cluster.
I have installed the helm package for k8ssandra-operator and it works fine but when i try to create a datacenter, it fails with
NAME ERROR
demo CassandraDatacenter.cassandra.datastax.com “dc1” is invalid: spec.storageConfig.additionalVolumes[3].pvcSpec: Required value
I have tried to add additonalVolumes but as i keep adding it keep incrementing the error values.
For example here is my manifest
apiVersion: k8ssandra.io/v1alpha1
kind: K8ssandraCluster
metadata:
name: demo
spec:
cassandra:
serverVersion: "4.0.1"
datacenters:
- metadata:
name: dc1
size: 3
storageConfig:
cassandraDataVolumeClaimSpec:
storageClassName: kiran-k8ssandra-poc
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
additionalVolumes:
- name: sts-extra-vol
mountPath: "/var/lib/extra"
pvcSpec:
storageClassName: kiran-k8ssandra-poc
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: sts-extra-vol2
mountPath: "/var/lib/extra2"
pvcSpec:
storageClassName: kiran-k8ssandra-poc
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: sts-extra-vol3
mountPath: "/var/lib/extra3"
pvcSpec:
storageClassName: kiran-k8ssandra-poc
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
config:
jvmOptions:
heapSize: 512M
stargate:
size: 1
heapSize: 256M