Skip to content

Commit

Permalink
Merge pull request #372 from mukaibot/master
Browse files Browse the repository at this point in the history
Retrieve node IPv4 address from meta-data
  • Loading branch information
errordeveloper authored Dec 27, 2018
2 parents 352d9e3 + e218100 commit d7f665d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Michael Seiwald @mseiwald
Anton Gruebel @gruebel
Bryan Peterson @lazyshot
Josue Abreu @gotjosh
Timothy Mukaibo @mukaibot

/* Thanks */

Expand Down
8 changes: 4 additions & 4 deletions pkg/nodebootstrap/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/nodebootstrap/assets/bootstrap.al2.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh -eu

echo "NODE_IP=$(hostname -i)" > /etc/eksctl/kubelet.local.env
echo "NODE_IP=$(curl --silent http://169.254.169.254/latest/meta-data/local-ipv4)" > /etc/eksctl/kubelet.local.env

systemctl daemon-reload
systemctl enable kubelet
Expand Down
2 changes: 1 addition & 1 deletion pkg/nodebootstrap/assets/bootstrap.ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -eu

echo "NODE_IP=$(hostname -i)" > /etc/eksctl/kubelet.local.env
echo "NODE_IP=$(curl --silent http://169.254.169.254/latest/meta-data/local-ipv4)" > /etc/eksctl/kubelet.local.env

snap alias kubelet-eks.kubelet kubelet
snap alias kubectl-eks.kubectl kubectl
Expand Down

0 comments on commit d7f665d

Please sign in to comment.