Skip to content

Commit

Permalink
Update integration tests and userdocs references to IMDSv1 (#6618)
Browse files Browse the repository at this point in the history
* Make IMDSv2 the default

* update integration tests and userdocs references
  • Loading branch information
TiberiuGC authored May 18, 2023
1 parent 8a36bf3 commit 5e7b8eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/05-advanced-nodegroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ nodeGroups:
volumeType: gp2
ami: ami-05ecac759c81e0b0c
amiFamily: AmazonLinux2
# forces the use of IMDSv2 tokens
disableIMDSv1: true
# defaults to true, which enforces the use of IMDSv2 tokens
disableIMDSv1: false
labels:
nodegroup-type: frontend-workloads
iam:
Expand Down
4 changes: 2 additions & 2 deletions integration/tests/dry_run/dry_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ kubernetesNetworkConfig:
nodeGroups:
- amiFamily: AmazonLinux2
containerRuntime: containerd
disableIMDSv1: false
disableIMDSv1: true
disablePodIMDS: false
instanceSelector: {}
iam:
Expand Down Expand Up @@ -104,7 +104,7 @@ nodeGroups:
managedNodeGroups:
- amiFamily: AmazonLinux2
desiredCapacity: 2
disableIMDSv1: false
disableIMDSv1: true
disablePodIMDS: false
instanceSelector: {}
iam:
Expand Down
2 changes: 1 addition & 1 deletion userdocs/src/usage/dry-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ kind: ClusterConfig
managedNodeGroups:
- amiFamily: AmazonLinux2
desiredCapacity: 2
disableIMDSv1: false
disableIMDSv1: true
disablePodIMDS: false
iam:
withAddonPolicies:
Expand Down
3 changes: 2 additions & 1 deletion userdocs/src/usage/eks-managed-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ managedNodeGroups:
volumeSize: 100
volumeName: /dev/xvda
volumeEncrypted: true
disableIMDSv1: true
# defaults to true, which enforces the use of IMDSv2 tokens
disableIMDSv1: false
overrideBootstrapCommand: |
#!/bin/bash
/etc/eks/bootstrap.sh managed-cluster --kubelet-extra-args '--node-labels=eks.amazonaws.com/nodegroup=custom-ng,eks.amazonaws.com/nodegroup-image=ami-0e124de4755b2734d'
Expand Down

0 comments on commit 5e7b8eb

Please sign in to comment.