Skip to content

karpenter managed nodegroup #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion eksctl-configs/eksctl-devtron-arm-confis.yaml
Original file line number Diff line number Diff line change
@@ -6,7 +6,9 @@ kind: ClusterConfig
metadata:
name: devtron-cluster
region: ap-south-1
version: "1.30"
version: "1.31"
accessConfig:
authenticationMode: CONFIG_MAP

vpc:
## Make sure that this CIDR doesn't overlaps with any other exisiting VPC with which a peering needs to be done.
@@ -37,6 +39,7 @@ nodeGroups:
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::xxxxxxxxxxxxx:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "infra"
@@ -82,6 +85,7 @@ nodeGroups:
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::xxxxxxxxxxxxx:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "infra"
38 changes: 38 additions & 0 deletions eksctl-configs/eksctl-devtron-karpenter-mng.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
name: devtron-cluster
region: ap-south-1
version: "1.31"
accessConfig:
authenticationMode: CONFIG_MAP
managedNodeGroups:
- name: devtron-managed-ng
privateNetworking: true
desiredCapacity: 1
minSize: 1
maxSize: 2
instanceTypes: ["c6g.large"]
labels: {}
iam:
withAddonPolicies:
autoScaler: true
attachPolicyARNs:
- arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
- arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
- arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryFullAccess
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::XXXXXXXXX:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "infra"
enableSsm: true
volumeSize: 50
volumeType: gp3
volumeEncrypted: true
asgSuspendProcesses: ["AZRebalance"]
tags:
Component : devtron
11 changes: 10 additions & 1 deletion eksctl-configs/eksctl-devtron-prod-configs.yaml
Original file line number Diff line number Diff line change
@@ -4,7 +4,10 @@ kind: ClusterConfig
metadata:
name: devtron-cluster
region: ap-south-1
version: "1.30"
version: "1.31"

accessConfig:
authenticationMode: CONFIG_MAP

vpc:
id: "vpc-xxxxxxx"
@@ -45,10 +48,13 @@ nodeGroups:
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::xxxxxxxxxxxxx:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "infra"
volumeSize: 50
volumeType: gp3
volumeEncrypted: true
tags:
Component : cicd
kubeletExtraConfig:
@@ -89,10 +95,13 @@ nodeGroups:
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::xxxxxxxxxxxxx:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "infra"
volumeSize: 100
volumeType: gp3
volumeEncrypted: true
tags:
Component : cicd
labels: {purpose: ci}
11 changes: 10 additions & 1 deletion eksctl-configs/eksctl-prod-multi-az-cluster.yaml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ kind: ClusterConfig
metadata:
name: prod-1
region: us-west-2
version: "1.30"
version: "1.31"

vpc:
cidr: 172.31.0.0/16
@@ -36,10 +36,13 @@ nodeGroups:
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::XXXXXXXX:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "devops"
volumeSize: 50
volumeType: gp3
volumeEncrypted: true
tags:
Component : prod
kubeletExtraConfig:
@@ -85,10 +88,13 @@ nodeGroups:
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::XXXXXXXX:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "devops"
volumeSize: 50
volumeType: gp3
volumeEncrypted: true
tags:
Component : prod
kubeletExtraConfig:
@@ -134,10 +140,13 @@ nodeGroups:
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::XXXXXXXX:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "devops"
volumeSize: 50
volumeType: gp3
volumeEncrypted: true
tags:
Component : prod
kubeletExtraConfig:
8 changes: 7 additions & 1 deletion eksctl-configs/ekstl-devtron-configs-create-new-vpc.yaml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ kind: ClusterConfig
metadata:
name: devtron-cluster
region: ap-south-1
version: "1.30"
version: "1.31"

vpc:
## Make sure that this CIDR doesn't overlaps with any other exisiting VPC with which a peering needs to be done.
@@ -34,10 +34,13 @@ nodeGroups:
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::xxxxxxxxxxxxx:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "infra"
volumeSize: 50
volumeType: gp3
volumeEncrypted: true
asgSuspendProcesses: ["AZRebalance"]
tags:
Component : cicd
@@ -79,10 +82,13 @@ nodeGroups:
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::xxxxxxxxxxxxx:policy/devtron-cluster-IAM-policy
- arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy
ssh:
allow: true
publicKeyName: "infra"
volumeSize: 100
volumeType: gp3
volumeEncrypted: true
asgSuspendProcesses: ["AZRebalance"]
tags:
Component : cicd