Skip to content
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
38 changes: 15 additions & 23 deletions apps/karpenter-nodes/classes/al2023.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ spec:
karpenter.sh/discovery: "${flux_cluster_name}"
detailedMonitoring: true
associatePublicIPAddress: true
kubelet:
maxPods: 110
kubeReserved:
memory: 1465Mi # 255Mi + (11Mi * maxPods)
systemReserved:
memory: 200Mi
userData: |
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="BOUNDARY"
Expand All @@ -34,9 +40,6 @@ spec:
#!/bin/sh
set -o xtrace

echo fs.inotify.max_user_watches=131072 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

DOCKER_HUB_CREDS=$(aws ssm get-parameter --name /eks/${flux_cluster_name}/dockerhub --with-decrypt --query 'Parameter.Value' --output text)
DOCKER_HUB_USER=$(echo "$DOCKER_HUB_CREDS" | jq .username)
DOCKER_HUB_PASSWD=$(echo "$DOCKER_HUB_CREDS" | jq .password)
Expand All @@ -57,14 +60,7 @@ spec:
spec:
kubelet:
config:
maxPods: 110
registryPullQPS: 0
kubeReserved:
cpu: 700m
memory: 1024Mi
systemReserved:
cpu: 700m
memory: 1024Mi
registryPullQPS: 0 # since not available in the spec

--BOUNDARY--

Expand Down Expand Up @@ -94,6 +90,12 @@ spec:
karpenter.sh/discovery: "${flux_cluster_name}"
detailedMonitoring: true
associatePublicIPAddress: true
kubelet:
maxPods: 110
kubeReserved:
memory: 1465Mi # 255Mi + (11Mi * maxPods)
systemReserved:
memory: 200Mi
userData: |
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="BOUNDARY"
Expand All @@ -104,9 +106,6 @@ spec:
#!/bin/sh
set -o xtrace

echo fs.inotify.max_user_watches=131072 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

DOCKER_HUB_CREDS=$(aws ssm get-parameter --name /eks/${flux_cluster_name}/dockerhub --with-decrypt --query 'Parameter.Value' --output text)
DOCKER_HUB_USER=$(echo "$DOCKER_HUB_CREDS" | jq .username)
DOCKER_HUB_PASSWD=$(echo "$DOCKER_HUB_CREDS" | jq .password)
Expand All @@ -127,13 +126,6 @@ spec:
spec:
kubelet:
config:
maxPods: 110
registryPullQPS: 0
kubeReserved:
cpu: 700m
memory: 1024Mi
systemReserved:
cpu: 700m
memory: 1024Mi
registryPullQPS: 0 # since not available in the spec

--BOUNDARY--
--BOUNDARY--