Skip to content

Instantly share code, notes, and snippets.

@vishnuhd
Created April 9, 2020 17:51
Show Gist options
  • Save vishnuhd/3527e3314d223627bea64a3197b1d5cc to your computer and use it in GitHub Desktop.
Save vishnuhd/3527e3314d223627bea64a3197b1d5cc to your computer and use it in GitHub Desktop.
eksctl managed node group
# cluster.yaml
# A cluster with managed nodegroup
# Setup aws profile if you have many:
# `export AWS_PROFILE=test`
# `export AWS_DEFAULT_PROFILE=test`
# Run the command:
# `eksctl create cluster -f cluster.yaml --write-kubeconfig --set-kubeconfig-context`
---
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: covid-dev
region: ap-south-1
managedNodeGroups:
- name: managed-ng-1
minSize: 2
maxSize: 4
desiredCapacity: 3
volumeSize: 30
instanceType: t3.medium
availabilityZones: ["ap-south-1a", "ap-south-1b"]
ssh:
allow: true
publicKeyPath: ~/.ssh/id_rsa.pub
labels: {role: worker}
tags:
nodegroup-role: worker
iam:
withAddonPolicies:
externalDNS: true
cloudWatch: true
albIngress: true
autoScaler: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment