Created
June 10, 2019 02:46
-
-
Save dkeightley/4409e84cb6421dabed2d2df5ed7b7a2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Content-Type: multipart/mixed; boundary="==BOUNDARY==" | |
MIME-Version: 1.0 | |
--==BOUNDARY== | |
Content-Type: text/cloud-boothook; charset="us-ascii" | |
# Set the proxy hostname and port | |
PROXY="proxy.local:3128" | |
# Set the proxy for future processes, and use as an include file | |
cat << EOF >> /etc/proxy.conf | |
http_proxy=http://$PROXY | |
https_proxy=http://$PROXY | |
HTTP_PROXY=http://$PROXY | |
HTTPS_PROXY=http://$PROXY | |
no_proxy=<VPC CIDR RANGE>,localhost,127.0.0.1,169.254.169.254,.internal | |
NO_PROXY=<VPC CIDR RANGE>,localhost,127.0.0.1,169.254.169.254,.internal | |
EOF | |
# Configure the kubelet with the proxy | |
cat << EOF >> /etc/systemd/system/kubelet.service.d/proxy.conf | |
[Service] | |
EnvironmentFile=/etc/proxy.conf | |
EOF | |
--==BOUNDARY== | |
Content-Type: text/x-shellscript; charset="us-ascii" | |
#!/bin/bash | |
set -o xtrace | |
/etc/eks/bootstrap.sh ${ClusterName} ${BootstrapArguments} | |
/opt/aws/bin/cfn-signal --exit-code $? \ | |
--stack ${AWS::StackName} \ | |
--resource NodeGroup \ | |
--region ${AWS::Region} | |
--==BOUNDARY==-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment