Skip to content

Commit 81b2cbf

Browse files
authored
feat: send nodeadm logs to the node console (#2620)
This helps troubleshoot node not joining cluster issues when the access to node is limited.
1 parent daaa213 commit 81b2cbf

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

templates/al2023/runtime/rootfs/etc/systemd/system/nodeadm-boot-hook.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Before=systemd-networkd-wait-online.service
1515
[Service]
1616
Type=oneshot
1717
ExecStart=/usr/bin/nodeadm-internal boot-hook
18+
StandardError=journal+console
1819

1920
[Install]
2021
WantedBy=multi-user.target

templates/al2023/runtime/rootfs/etc/systemd/system/nodeadm-config.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ After=systemd-networkd-wait-online.service
99
[Service]
1010
Type=oneshot
1111
ExecStart=/usr/bin/nodeadm init --skip run --config-source imds://user-data --config-cache /run/eks/nodeadm/config.json
12+
StandardError=journal+console
1213

1314
[Install]
1415
WantedBy=multi-user.target

templates/al2023/runtime/rootfs/etc/systemd/system/nodeadm-run.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Requires=nodeadm-config.service
99
[Service]
1010
Type=oneshot
1111
ExecStart=/usr/bin/nodeadm init --skip config --config-source imds://user-data --config-source file:///etc/eks/nodeadm.d/ --config-cache /run/eks/nodeadm/config.json
12+
StandardError=journal+console
1213

1314
[Install]
1415
WantedBy=multi-user.target

0 commit comments

Comments
 (0)