kahkeng / pulumi-eks-mixed-asg-example

Example using Pulumi to create EKS cluster with AWS AutoScalingGroup using MixedInstancesPolicy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pulumi EKS with Autoscaling Group using Mixed Instances Policy

Motivation

Currently, EKS supports managed node groups, but these do not have support for spot instances. You could use the unmanaged node groups with Pulumi's EKS library, but these currently utilize a CloudFormation stack for AutoScalingGroup via Launch Configurations instead of Launch Templates, so it is not possible to get MixedInstancesPolicy to apply herek

This repo provides a minimal example for using Pulumi's AWS library to create an AutoScalingGroup with the MixedInstancesPolicy and integrating them with EKS.

The steps below are taken from https://github.com/pulumi/kubernetes-guides, but index.ts of step 3 (cluster configuration) has been modified to showcase the above example.

AWS
Identity
Managed Infrastructure
Cluster Configuration

About

Example using Pulumi to create EKS cluster with AWS AutoScalingGroup using MixedInstancesPolicy


Languages

Language:TypeScript 100.0%