SlideShare a Scribd company logo
Spot Instances on K8s
(with Kops)
Mustafa Kirimli
Must Haves
Having multiples instance groups
on Kops will give you freedom to
experiment different set of
underlying infra for Kubernetes.
Multiple instance groups on
kops
Must Haves
Having multiple instance/machine
specs from first day will give you
room to optimize workload based
on requirement/consumption.
You can eliminate your risk to fall in
short on one of the purchasing
option.
Mixed instance types and
multiple purchasing/lifecycle
options
Must Haves
Be aware if AWS is asking you to
give instance back in 2 minutes
(rarely happening and hasn’t
happened last 3-4 months to us)
Spot interrupt handler
Steps We Have
Taken
● Create a small instance group
on kops
● Put taints to new instance
group
● Set toleration to least important
service
● Trigger scale-in / scale-out to
see how it getting provisioned
● Note taken actions on dev and
follow same steps on prod
cluster
Experimenting spot instances on
running cluster
Steps We Have
Taken
● When spot instances are
getting provisioning there is
small difference on initializing
steps.
● First ec2 object is getting
created and then (when spot
request fulfilled) ec2 tags are
getting assigned
● Check your kops version
whether handling spot
provisioning if not put small
check on kops instance group
Be sure spot instances are
getting provisioned properly
Steps We Have
Taken
● “most-pods” or “price”
preferably can be set as an
expander value on Cluster
Autoscaler when working with
spot instances.Utilise CA expander option to
control which instance group
need to be scaled first
79%
Cost saving on our compute power with mixed instance types
Monthly double digit ($$K) saving
Roadmap
● Having mixed instance type on one IG (ec2 fleet)
● Dynamic bidding on spot
● Trying *5d instance types to reduce cost more
● Tweaking CA to take faster action on spot interruption

More Related Content

PDF
Running kubernetes
PDF
Cloudformation vs terraform_vs_ansible
PPTX
Spark with kubernates
PDF
Kubernetes Operations (KOPS)
PDF
LocalSocial, Dial2Do and the Cloud
PDF
Wantedly on AWS #ctonight
PPTX
Deploying Kubernetes on GCP with Kubespray
PPTX
Deploy High Availability Kubernetes with Kubespray
Running kubernetes
Cloudformation vs terraform_vs_ansible
Spark with kubernates
Kubernetes Operations (KOPS)
LocalSocial, Dial2Do and the Cloud
Wantedly on AWS #ctonight
Deploying Kubernetes on GCP with Kubespray
Deploy High Availability Kubernetes with Kubespray

What's hot (20)

PPT
AWS migration: getting to Data Center heaven with AWS and Chef
PPTX
themidgame-tube-slides
PPTX
Device status anomaly detection
PDF
Aws Fargate clusterless serverless
PDF
Aws ri vs cost saving plan
PPTX
淺談 Redux Thunk
PPTX
Introduction to Terraform with Azure flavor
PDF
DevOps at Scale: Things We Learned
PPTX
Amazon EC2
PPTX
Serverless on Kubernetes
PPTX
Immutable infrastructure with Terraform
PDF
Cloud Foundry CF LOGS stack
PPTX
kubernates and micro-services
PDF
DevOps Summit 2016 - The immutable Journey
PDF
Orchestrating VM & Container Deployments
PDF
Cluster api devopscon berlin
PDF
Ford's AWS Service Update - March 2020 (Richmond AWS User Group)
PDF
Artem Zhurbila - 2 aws - EC2
PDF
Nyc kubernetes Meetup - Kubeflow Lightning talk
PPTX
Major Managed Kubernetes Platforms Comparison (AWS, GCP, Azure)
AWS migration: getting to Data Center heaven with AWS and Chef
themidgame-tube-slides
Device status anomaly detection
Aws Fargate clusterless serverless
Aws ri vs cost saving plan
淺談 Redux Thunk
Introduction to Terraform with Azure flavor
DevOps at Scale: Things We Learned
Amazon EC2
Serverless on Kubernetes
Immutable infrastructure with Terraform
Cloud Foundry CF LOGS stack
kubernates and micro-services
DevOps Summit 2016 - The immutable Journey
Orchestrating VM & Container Deployments
Cluster api devopscon berlin
Ford's AWS Service Update - March 2020 (Richmond AWS User Group)
Artem Zhurbila - 2 aws - EC2
Nyc kubernetes Meetup - Kubeflow Lightning talk
Major Managed Kubernetes Platforms Comparison (AWS, GCP, Azure)
Ad

Similar to Spot instances on kubernetes (20)

PPTX
Kubernetes Presentation
PDF
Kubernetes and CoreOS @ Athens Docker meetup
PPTX
Kubernates best Practices
PPTX
Scaling on Kubernetes
PPTX
Introduction to Kubernetes
PDF
What is kubernet
PDF
Run K8s on Local Environment
PPTX
TRAINING_ABOUT_KUBERNETES_Nguyen_Si_Nhan.pptx
PDF
Kubernetes Kops - Automation Night
PDF
Hands-On Introduction to Kubernetes at LISA17
PDF
stupid-simple-kubernetes-final.pdf
PDF
ARCHITECTING TENANT BASED QOS IN MULTI-TENANT CLOUD PLATFORMS
PDF
Karpenter
PPTX
Migrating from EKS Cluster Autoscaler to Karpenter
PDF
Podila QCon SF 2016
PDF
Kubernetes for Startups
PPTX
AWS Atlanta Meetup -AWS Spot Blocks and Spot Fleet
PPTX
Stateful set in kubernetes implementation & usecases
PDF
Esctl in action elastic user group presentation aug 25 2020
PDF
Deploying Elasticsearch and Kibana on Kubernetes with the Elastic Operator / ECK
Kubernetes Presentation
Kubernetes and CoreOS @ Athens Docker meetup
Kubernates best Practices
Scaling on Kubernetes
Introduction to Kubernetes
What is kubernet
Run K8s on Local Environment
TRAINING_ABOUT_KUBERNETES_Nguyen_Si_Nhan.pptx
Kubernetes Kops - Automation Night
Hands-On Introduction to Kubernetes at LISA17
stupid-simple-kubernetes-final.pdf
ARCHITECTING TENANT BASED QOS IN MULTI-TENANT CLOUD PLATFORMS
Karpenter
Migrating from EKS Cluster Autoscaler to Karpenter
Podila QCon SF 2016
Kubernetes for Startups
AWS Atlanta Meetup -AWS Spot Blocks and Spot Fleet
Stateful set in kubernetes implementation & usecases
Esctl in action elastic user group presentation aug 25 2020
Deploying Elasticsearch and Kibana on Kubernetes with the Elastic Operator / ECK
Ad

More from Mustafa Kırımlı (7)

PDF
Compute @ edge
PPTX
Why and Way of Using Docker & Kubernetes
PDF
Opsiyonlar
PDF
PHP Dosya Yükleme
PDF
HTML ve CSS
PDF
Smarty Template Engine
PDF
Http Yaşam Döngüsü
Compute @ edge
Why and Way of Using Docker & Kubernetes
Opsiyonlar
PHP Dosya Yükleme
HTML ve CSS
Smarty Template Engine
Http Yaşam Döngüsü

Recently uploaded (20)

PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Patient Appointment Booking in Odoo with online payment
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
Cost to Outsource Software Development in 2025
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
medical staffing services at VALiNTRY
Digital Systems & Binary Numbers (comprehensive )
Design an Analysis of Algorithms I-SECS-1021-03
17 Powerful Integrations Your Next-Gen MLM Software Needs
Why Generative AI is the Future of Content, Code & Creativity?
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Odoo Companies in India – Driving Business Transformation.pdf
Designing Intelligence for the Shop Floor.pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
Patient Appointment Booking in Odoo with online payment
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Design an Analysis of Algorithms II-SECS-1021-03
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
Oracle Fusion HCM Cloud Demo for Beginners
Cost to Outsource Software Development in 2025
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
How to Choose the Right IT Partner for Your Business in Malaysia
medical staffing services at VALiNTRY

Spot instances on kubernetes

  • 1. Spot Instances on K8s (with Kops) Mustafa Kirimli
  • 2. Must Haves Having multiples instance groups on Kops will give you freedom to experiment different set of underlying infra for Kubernetes. Multiple instance groups on kops
  • 3. Must Haves Having multiple instance/machine specs from first day will give you room to optimize workload based on requirement/consumption. You can eliminate your risk to fall in short on one of the purchasing option. Mixed instance types and multiple purchasing/lifecycle options
  • 4. Must Haves Be aware if AWS is asking you to give instance back in 2 minutes (rarely happening and hasn’t happened last 3-4 months to us) Spot interrupt handler
  • 5. Steps We Have Taken ● Create a small instance group on kops ● Put taints to new instance group ● Set toleration to least important service ● Trigger scale-in / scale-out to see how it getting provisioned ● Note taken actions on dev and follow same steps on prod cluster Experimenting spot instances on running cluster
  • 6. Steps We Have Taken ● When spot instances are getting provisioning there is small difference on initializing steps. ● First ec2 object is getting created and then (when spot request fulfilled) ec2 tags are getting assigned ● Check your kops version whether handling spot provisioning if not put small check on kops instance group Be sure spot instances are getting provisioned properly
  • 7. Steps We Have Taken ● “most-pods” or “price” preferably can be set as an expander value on Cluster Autoscaler when working with spot instances.Utilise CA expander option to control which instance group need to be scaled first
  • 8. 79% Cost saving on our compute power with mixed instance types Monthly double digit ($$K) saving
  • 9. Roadmap ● Having mixed instance type on one IG (ec2 fleet) ● Dynamic bidding on spot ● Trying *5d instance types to reduce cost more ● Tweaking CA to take faster action on spot interruption