Skip to content
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

Changing karpenter config to rely on pre-FIPS'd images #2619

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
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
21 changes: 3 additions & 18 deletions kube/services/karpenter/nodeTemplateDefault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ kind: AWSNodeTemplate
metadata:
name: default
spec:
amiSelector:
aws::name: EKS-FIPS*
aws::owners: "143731057154"
subnetSelector:
karpenter.sh/discovery: VPC_NAME
securityGroupSelector:
Expand Down Expand Up @@ -32,30 +35,12 @@ spec:

sysctl -w fs.inotify.max_user_watches=12000

sudo yum update -y
sudo yum install -y dracut-fips openssl >> /opt/fips-install.log
sudo dracut -f
# configure grub
sudo /sbin/grubby --update-kernel=ALL --args="fips=1"

# --BOUNDARY
# Content-Type: text/cloud-config; charset="us-ascii"

# mounts:
# - ['fstype': 'bpf', 'mountpoint': '/sys/fs/bpf', 'opts': 'rw,relatime']

--BOUNDARY

Content-Type: text/cloud-config; charset="us-ascii"

power_state:
delay: now
mode: reboot
message: Powering off
timeout: 2
condition: true


--BOUNDARY--
blockDeviceMappings:
- deviceName: /dev/xvda
Expand Down
14 changes: 6 additions & 8 deletions kube/services/karpenter/provisionerDefault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ spec:
- key: kubernetes.io/arch
operator: In
values:
- amd64
- amd64
- key: karpenter.k8s.aws/instance-category
operator: In
values:
- c
- m
- r
- t
- c
- m
- r
- t
# Set a limit of 1000 vcpus
limits:
resources:
Expand All @@ -30,6 +30,4 @@ spec:
consolidation:
enabled: true
# Kill nodes after 30 days to ensure they stay up to date
ttlSecondsUntilExpired: 2592000


ttlSecondsUntilExpired: 604800
Loading