Skip to content

Instantly share code, notes, and snippets.

@dkeightley
Created June 10, 2019 02:46
Show Gist options
  • Save dkeightley/4409e84cb6421dabed2d2df5ed7b7a2f to your computer and use it in GitHub Desktop.
Save dkeightley/4409e84cb6421dabed2d2df5ed7b7a2f to your computer and use it in GitHub Desktop.
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