Skip to content

Commit 95a60d2

Browse files
committed
Changing karpenter config to rely on pre-FIPS'd images
1 parent 2cbd1ca commit 95a60d2

File tree

2 files changed

+9
-26
lines changed

2 files changed

+9
-26
lines changed

kube/services/karpenter/nodeTemplateDefault.yaml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ kind: AWSNodeTemplate
33
metadata:
44
name: default
55
spec:
6+
amiSelector:
7+
aws::name: EKS-FIPS*
8+
aws::owners: "143731057154"
69
subnetSelector:
710
karpenter.sh/discovery: VPC_NAME
811
securityGroupSelector:
@@ -32,30 +35,12 @@ spec:
3235
3336
sysctl -w fs.inotify.max_user_watches=12000
3437
35-
sudo yum update -y
36-
sudo yum install -y dracut-fips openssl >> /opt/fips-install.log
37-
sudo dracut -f
38-
# configure grub
39-
sudo /sbin/grubby --update-kernel=ALL --args="fips=1"
40-
4138
# --BOUNDARY
4239
# Content-Type: text/cloud-config; charset="us-ascii"
4340
4441
# mounts:
4542
# - ['fstype': 'bpf', 'mountpoint': '/sys/fs/bpf', 'opts': 'rw,relatime']
4643
47-
--BOUNDARY
48-
49-
Content-Type: text/cloud-config; charset="us-ascii"
50-
51-
power_state:
52-
delay: now
53-
mode: reboot
54-
message: Powering off
55-
timeout: 2
56-
condition: true
57-
58-
5944
--BOUNDARY--
6045
blockDeviceMappings:
6146
- deviceName: /dev/xvda

kube/services/karpenter/provisionerDefault.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ spec:
1111
- key: kubernetes.io/arch
1212
operator: In
1313
values:
14-
- amd64
14+
- amd64
1515
- key: karpenter.k8s.aws/instance-category
1616
operator: In
1717
values:
18-
- c
19-
- m
20-
- r
21-
- t
18+
- c
19+
- m
20+
- r
21+
- t
2222
# Set a limit of 1000 vcpus
2323
limits:
2424
resources:
@@ -30,6 +30,4 @@ spec:
3030
consolidation:
3131
enabled: true
3232
# Kill nodes after 30 days to ensure they stay up to date
33-
ttlSecondsUntilExpired: 2592000
34-
35-
33+
ttlSecondsUntilExpired: 604800

0 commit comments

Comments
 (0)