-
Notifications
You must be signed in to change notification settings - Fork 138
/
eksctl.yaml
66 lines (57 loc) · 1.73 KB
/
eksctl.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# Author: Hari Sekhon
# Date: 2022-12-11 13:35:53 +0000 (Sun, 11 Dec 2022)
#
# vim:ts=2:sts=2:sw=2:et
#
# https://github.com/HariSekhon/Kubernetes-configs
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# E K S C t l C o n f i g
# ============================================================================ #
# run: eksctl create cluster -f eksctl.yaml
# https://eksctl.io/usage/creating-and-managing-clusters/
# https://eksctl.io/usage/schema/
---
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: hari
region: eu-west-2
#version: "1.20"
# creates a VPC by default - careful, you'll hit your account VPC limits, causing a rollback
vpc:
#cidr: 10.0.0.0/16
# use an existing VPC by providing the subnets
subnets:
private:
eu-west-2a: {id: subnet-xxxxxxxxxxxxxxxxx}
eu-west-2b: {id: subnet-xxxxxxxxxxxxxxxxx}
eu-west-2c: {id: subnet-xxxxxxxxxxxxxxxxx}
nodeGroups:
- name: ng-1
# https://aws.amazon.com/ec2/instance-types/
instanceType: t2.micro
desiredCapacity: 3
#volumeSize: 80
#ssh:
# allow: true # will use ~/.ssh/id_rsa.pub as the default ssh key
#- name: ng-2
# instanceType: m5.xlarge
# desiredCapacity: 2
# volumeSize: 100
# ssh:
# publicKeyPath: ~/.ssh/ec2_id_rsa.pub
#managedNodeGroups:
# - instanceType: m5.large
# amiFamily: AmazonLinux2
# name: eks-kapenter-demo-ng
# desiredCapacity: 1
# minSize: 1
# maxSize: 5