Skip to content

Instantly share code, notes, and snippets.

@leandrosiow
Last active February 2, 2020 05:56
Show Gist options
  • Save leandrosiow/98d36fbadafa72e77e0fa8740eb59737 to your computer and use it in GitHub Desktop.
Save leandrosiow/98d36fbadafa72e77e0fa8740eb59737 to your computer and use it in GitHub Desktop.
# This script sets up the VPC Webhook for an EKS Cluster.
#
# Download the webhook-create-signed-cert.sh and webhook-patch-ca-bundle.sh files
curl -o webhook-create-signed-cert.sh https://amazon-eks.s3-us-west-2.amazonaws.com/manifests/us-west-2/vpc-admission-webhook/latest/webhook-create-signed-cert.sh
curl -o webhook-patch-ca-bundle.sh https://amazon-eks.s3-us-west-2.amazonaws.com/manifests/us-west-2/vpc-admission-webhook/latest/webhook-patch-ca-bundle.sh
# Download the Deployment YAML file
curl -o vpc-admission-webhook-deployment.yaml https://amazon-eks.s3-us-west-2.amazonaws.com/manifests/us-west-2/vpc-admission-webhook/latest/vpc-admission-webhook-deployment.yaml
# Changes permissions of webhook-create-signed-cert.sh and webhook-patch-ca-bundle.sh
chmod +x webhook-create-signed-cert.sh webhook-patch-ca-bundle.sh
# Run the webhook-create-signed-cert.sh script
./webhook-create-signed-cert.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment