Skip to content

Commit

Permalink
Merge pull request #1 from varun-armis/compare-with-upstream
Browse files Browse the repository at this point in the history
Compare with upstream
  • Loading branch information
varun-armis authored Jan 30, 2024
2 parents 2cd9093 + 8b0f878 commit 75ec18f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions eks-worker-al2.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@
"ENABLE_FIPS={{user `enable_fips`}}"
]
},
{
"type": "shell",
"remote_folder": "{{ user `remote_folder`}}",
"inline": [
"sudo sed -i 's/^net.ipv4.ip_forward = 0$/net.ipv4.ip_forward = 1/' /etc/sysctl.conf"
]
},
{
"type": "shell",
"remote_folder": "{{ user `remote_folder`}}",
Expand Down
2 changes: 1 addition & 1 deletion files/kubelet-containerd.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Requires=containerd.service sandbox-image.service

[Service]
Slice=runtime.slice
ExecStartPre=/sbin/iptables -P FORWARD ACCEPT -w 5
ExecStartPre=/sbin/iptables -P FORWARD ACCEPT -w 5 ; /sbin/iptables -I INPUT -p tcp -m tcp --dport 10250 -j ACCEPT
ExecStart=/usr/bin/kubelet \
--config /etc/kubernetes/kubelet/kubelet-config.json \
--kubeconfig /var/lib/kubelet/kubeconfig \
Expand Down
8 changes: 6 additions & 2 deletions scripts/generate-version-info.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

# open issue:
# https://github.com/awslabs/amazon-eks-ami/pull/1513
# https://github.com/awslabs/amazon-eks-ami/pull/1556

# generates a JSON file containing version information for the software in this AMI

set -o errexit
Expand All @@ -16,14 +20,14 @@ OUTPUT_FILE="$1"
sudo rpm --query --all --queryformat '\{"%{NAME}": "%{VERSION}-%{RELEASE}"\}\n' | jq --slurp --sort-keys 'add | {packages:(.)}' > "$OUTPUT_FILE"

# binaries
KUBELET_VERSION=$(kubelet --version | awk '{print $2}')
KUBELET_VERSION=$(sudo kubelet --version | awk '{print $2}')
if [ "$?" != 0 ]; then
echo "unable to get kubelet version"
exit 1
fi
echo $(jq ".binaries.kubelet = \"$KUBELET_VERSION\"" $OUTPUT_FILE) > $OUTPUT_FILE

CLI_VERSION=$(aws --version | awk '{print $1}' | cut -d '/' -f 2)
CLI_VERSION=$(sudo /bin/aws --version | awk '{print $1}' | cut -d '/' -f 2)
if [ "$?" != 0 ]; then
echo "unable to get aws cli version"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ for binary in ${BINARIES[*]}; do
sudo wget $S3_URL_BASE/$binary.sha256
fi
sudo sha256sum -c $binary.sha256
sudo chmod +x $binary
sudo chmod 755 $binary
sudo mv $binary /usr/bin/
done

Expand Down

0 comments on commit 75ec18f

Please sign in to comment.