diff --git a/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-full.yaml b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-full.yaml index 55ab3191a..65e2eb4b7 100644 --- a/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-full.yaml +++ b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-full.yaml @@ -15,7 +15,7 @@ metadata: spec: # The cluster name. - clusterName: cluster2 + clusterName: cluster1 # The number of server nodes. size: 6 diff --git a/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal.yaml b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal.yaml index 097e6712c..6f7bd5ffd 100644 --- a/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal.yaml +++ b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal.yaml @@ -5,7 +5,7 @@ kind: CassandraDatacenter metadata: name: dc1 spec: - clusterName: cluster2 + clusterName: cluster1 serverType: dse serverVersion: "6.8.4" managementApiAuth: diff --git a/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal2.yaml b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal2.yaml new file mode 100644 index 000000000..ce8c9c141 --- /dev/null +++ b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal2.yaml @@ -0,0 +1,29 @@ +# Sized to work on 3 k8s workers nodes with 1 core / 4 GB RAM +# See neighboring example-cassdc-full.yaml for docs for each parameter +apiVersion: cassandra.datastax.com/v1beta1 +kind: CassandraDatacenter +metadata: + name: dc1 +spec: + clusterName: cluster1 + serverType: dse + serverVersion: "6.8.4" + managementApiAuth: + insecure: {} + size: 3 + storageConfig: + cassandraDataVolumeClaimSpec: + storageClassName: server-storage + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 25Gi + config: + jvm-server-options: + initial_heap_size: "800M" + max_heap_size: "800M" + additional-jvm-opts: + # As the database comes up for the first time, set system keyspaces to RF=3 + - "-Ddse.system_distributed_replication_dc_names=dc1" + - "-Ddse.system_distributed_replication_per_dc=3" diff --git a/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal3.yaml b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal3.yaml new file mode 100644 index 000000000..b4cefec21 --- /dev/null +++ b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-minimal3.yaml @@ -0,0 +1,35 @@ +# Sized to work on 3 k8s workers nodes with 1 core / 4 GB RAM +# See neighboring example-cassdc-full.yaml for docs for each parameter +apiVersion: cassandra.datastax.com/v1beta1 +kind: CassandraDatacenter +metadata: + name: dc1 +spec: + clusterName: cluster1 + serverType: dse + serverVersion: "6.8.4" + managementApiAuth: + insecure: {} + size: 3 + storageConfig: + cassandraDataVolumeClaimSpec: + storageClassName: server-storage + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 25Gi + config: + cassandra-yaml: + backup_service: + enabled: true + authenticator: org.apache.cassandra.auth.PasswordAuthenticator + authorizer: org.apache.cassandra.auth.CassandraAuthorizer + role_manager: org.apache.cassandra.auth.CassandraRoleManager + jvm-server-options: + initial_heap_size: "800M" + max_heap_size: "800M" + additional-jvm-opts: + # As the database comes up for the first time, set system keyspaces to RF=3 + - "-Ddse.system_distributed_replication_dc_names=dc1" + - "-Ddse.system_distributed_replication_per_dc=3" diff --git a/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-three-rack-three-node.yaml b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-three-rack-three-node.yaml index e34a426c9..51f618aaa 100644 --- a/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-three-rack-three-node.yaml +++ b/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-three-rack-three-node.yaml @@ -5,7 +5,7 @@ kind: CassandraDatacenter metadata: name: dc1 spec: - clusterName: cluster2 + clusterName: cluster1 serverType: dse serverVersion: "6.8.4" managementApiAuth: diff --git a/operator/k8s-flavors/iks/storage-block.yaml b/operator/k8s-flavors/iks/storage-block.yaml new file mode 100644 index 000000000..573f0dab1 --- /dev/null +++ b/operator/k8s-flavors/iks/storage-block.yaml @@ -0,0 +1,15 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: server-storage + labels: + kubernetes.io/cluster-service: "true" +provisioner: ibm.io/ibmc-block +parameters: + classVersion: "2" + zone: "dal12" + region: "us-south" + type: "Endurance" + iopsPerGB: "2" + sizeRange: "[20-12000]Gi" +reclaimPolicy: "Delete" \ No newline at end of file diff --git a/operator/k8s-flavors/iks/storage.yaml b/operator/k8s-flavors/iks/storage.yaml new file mode 100644 index 000000000..fb724dbb6 --- /dev/null +++ b/operator/k8s-flavors/iks/storage.yaml @@ -0,0 +1,10 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: server-storage +provisioner: ibm.io/ibmc-file +parameters: + type: pd-ssd + replication-type: none +volumeBindingMode: WaitForFirstConsumer +reclaimPolicy: Delete \ No newline at end of file