<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Eksctl on make me: APe</title><link>https://apealive.net/tags/eksctl/</link><description>Recent content in Eksctl on make me: APe</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 08 Oct 2020 15:32:11 +0000</lastBuildDate><atom:link href="https://apealive.net/tags/eksctl/index.xml" rel="self" type="application/rss+xml"/><item><title>AWS EKS via eksctl</title><link>https://apealive.net/post/eksctl-managed-nodegroup-config/</link><pubDate>Thu, 08 Oct 2020 15:32:11 +0000</pubDate><guid>https://apealive.net/post/eksctl-managed-nodegroup-config/</guid><description>&lt;p&gt;This article covers &lt;strong&gt;AWS EKS via eksctl&lt;/strong&gt;, originally published as a secure &lt;a href="https://gist.github.com/epcim/82e56cb1024550c8a5d6e292f99a6ae4" target="_blank" rel="noopener noreferrer"&gt;GitHub Gist&lt;/a&gt;
 snippet.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
 
metadata:
 name: eksctl-us-west-2-managed
 region: us-west-2
 
vpc:
 id: vpc-0b953326cd7a2f917
 subnets:
 public:
 us-west-2a: 
 id: subnet-0947f8d8495f046d6
 us-west-2c:
 id: subnet-0d4ae0a69651a70f3
 #totally isolated subnets, no NAT
 private:
 us-west-2a:
 id: subnet-0b23ee123b8b67b7a
 us-west-2c:
 id: subnet-0d1a5c002de859352
 
nodeGroups: 
 - name: standard-public
 instanceType: t3.micro
 iam:
 attachPolicyARNs:
 - arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
 - arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
 - arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
 - arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM
 withAddonPolicies:
 cloudWatch: true
 autoScaler: true
 preBootstrapCommands:
 - |
 echo &amp;#39;#install curl,nslookup,dig and nc&amp;#39;
 yum install -y bind-utils nmap-ncat curl
 - |
 echo &amp;#39;#setup journald log rotate, replacing the blank, commented-out versions&amp;#39;
 sed -i &amp;#39;s/\#SystemMaxUse\=/SystemMaxUse\=200M/&amp;#39; /etc/systemd/journald.conf
 sed -i &amp;#39;s/\#SystemKeepFree\=/SystemKeepFree\=200M/&amp;#39; /etc/systemd/journald.conf
 sed -i &amp;#39;s/\#SystemMaxFileSize\=/SystemMaxFileSize\=10M/&amp;#39; /etc/systemd/journald.conf
 - |
 echo &amp;#39;#SSM &amp;gt; SSH&amp;#39;
 yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
 systemctl start amazon-ssm-agent
 - |
 echo &amp;#39;#begin bootstrap.sh&amp;#39;
 kubeletExtraConfig:
 #kubeReserved: #Set by new AMI &amp;gt;= 20191213
 #evictionHard: #Set by new AMI &amp;gt;= 20191213
 systemReserved:
 cpu: &amp;#34;100m&amp;#34;
 memory: &amp;#34;100Mi&amp;#34;
 ephemeral-storage: &amp;#34;1Gi&amp;#34;
 ssh:
 publicKeyName: dev
 minSize: 2
 maxSize: 3
 - name: gpu-public
 volumeSize: 200
 instanceType: p3.2xlarge
 iam:
 attachPolicyARNs:
 - arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
 - arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
 - arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
 - arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM
 # - arn:aws:iam::134354569320:policy/fsx-csi
 withAddonPolicies:
 cloudWatch: true
 autoScaler: true
 preBootstrapCommands:
 - |
 echo &amp;#39;#install curl,nslookup,dig and nc&amp;#39;
 yum install -y bind-utils nmap-ncat curl
 - |
 echo &amp;#39;#setup journald log rotate, replacing the blank, commented-out versions&amp;#39;
 sed -i &amp;#39;s/\#SystemMaxUse\=/SystemMaxUse\=200M/&amp;#39; /etc/systemd/journald.conf
 sed -i &amp;#39;s/\#SystemKeepFree\=/SystemKeepFree\=200M/&amp;#39; /etc/systemd/journald.conf
 sed -i &amp;#39;s/\#SystemMaxFileSize\=/SystemMaxFileSize\=10M/&amp;#39; /etc/systemd/journald.conf
 - |
 echo &amp;#39;#SSM &amp;gt; SSH&amp;#39;
 yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
 systemctl start amazon-ssm-agent
 - |
 echo &amp;#39;#begin bootstrap.sh&amp;#39;
 kubeletExtraConfig:
 #kubeReserved: #Set by new AMI &amp;gt;= 20191213
 #evictionHard: #Set by new AMI &amp;gt;= 20191213
 systemReserved:
 cpu: &amp;#34;100m&amp;#34;
 memory: &amp;#34;100Mi&amp;#34;
 ephemeral-storage: &amp;#34;1Gi&amp;#34; 
 ssh:
 allow: true
 publicKeyName: dev
 minSize: 0
 maxSize: 3
 
managedNodegroups:
 - name: managed-standard-public
 ssh:
 allow: true
 publicKeyName: dev
 # scalingConfig: #required in the schema but not known to eksctl v0.13.0 from brew
 # desiredCapacity: 2
 # maxSize: 4
 # minSize: 2
 volumeSize: 200
 
cloudWatch:
 clusterLogging:
 enableTypes: [&amp;#34;*&amp;#34;]
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>