Skip to content

Instantly share code, notes, and snippets.

@ntfrnzn
Last active January 23, 2021 06:13
Show Gist options
  • Save ntfrnzn/29b1f68e2867c2671a10bb8e431c0581 to your computer and use it in GitHub Desktop.
Save ntfrnzn/29b1f68e2867c2671a10bb8e431c0581 to your computer and use it in GitHub Desktop.
eksctl/spot-ocean configuration
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: natef-1611371235
region: us-west-2
tags:
creator: natef@netapp.com
environment: big-data-labs
nodeGroups:
- name: standard-workers
ssh:
allow: true # will use ~/.ssh/id_rsa.pub as the default ssh key
desiredCapacity: 2
minSize: 2
maxSize: 5
spotOcean:
metadata:
defaultLaunchSpec: true
useAsTemplateOnly: false
strategy:
# Percentage of Spot instances that would spin up from the desired
# capacity.
spotPercentage: 50
# Allow Ocean to utilize any available reserved instances first before
# purchasing Spot instances.
utilizeReservedInstances: true
# Launch On-Demand instances in case of no Spot instances available.
fallbackToOnDemand: true
autoScaler:
# Enable the Ocean autoscaler.
enabled: true
# Cooldown period between scaling actions.
cooldown: 180
# Spare resource capacity management enabling fast assignment of Pods
# without waiting for new resources to launch.
headrooms:
# Number of CPUs to allocate. CPUs are denoted in millicores, where
# 1000 millicores = 1 vCPU.
- cpuPerUnit: 100
# Number of GPUs to allocate.
gpuPerUnit: 0
# Amount of memory (MB) to allocate.
memoryPerUnit: 50
# Number of units to retain as headroom, where each unit has the
# defined CPU and memory.
numOfUnits: 2
compute:
instanceTypes:
# Instance types allowed in the Ocean cluster.
whitelist: # OR blacklist
- t2.large
- c5.large
- m5.large
- r5.large
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment