Skip to content

Instantly share code, notes, and snippets.

@arianvp
Last active June 14, 2021 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arianvp/e4197a1134ff2e83ad513d5dfa9a27c8 to your computer and use it in GitHub Desktop.
Save arianvp/e4197a1134ff2e83ad513d5dfa9a27c8 to your computer and use it in GitHub Desktop.
EKS managed node group k8ssandra
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: arian-playground-staging
region: eu-central-1
version: "1.19"
managedNodeGroups:
# Used for other workloads
- name: compute
minSize: 1
desiredCapacity: 3
maxSize: 10
# Used for K8ssandra on EBS
- name: memory
desiredCapacity: 3
minSize: 3
maxSize: 6
privateNetworking: true
instanceType: r5.2xlarge # https://aws.amazon.com/ec2/instance-types/r5/
taints:
- key: wire.com/role
value: cassandra
cassandra:
version: "3.11.10"
cassandraLibDirVolume:
storageClass: gp2
size: 3Ti
heap:
heap:
size: 31G
newGenSize: 31G
resources:
requests:
cpu: 7000m
memory: 58Gi
limits:
cpu: 7000m
memory: 58Gi
# Because cassandra nodes use quite a lof of resources, we help it find a
# place to schedule by making sure that the instances don't have any
# other things running
tolerations:
- key: wire.com/role
value: cassandra
datacenters:
- name: dc1
size: 3
racks:
- name: eu-central-1a
affinityLabels:
topology.kubernetes.io/zone: eu-central-1a
- name: eu-central-1b
affinityLabels:
topology.kubernetes.io/zone: eu-central-1b
- name: eu-central-1c
affinityLabels:
topology.kubernetes.io/zone: eu-central-1c
reaper:
autoschedule: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment