Skip to content

Instantly share code, notes, and snippets.

@lukasz-kaniowski
Created February 8, 2019 14:08
Show Gist options
  • Save lukasz-kaniowski/d9ebcfa5a2238c951ef3c9f5ba0e9e17 to your computer and use it in GitHub Desktop.
Save lukasz-kaniowski/d9ebcfa5a2238c951ef3c9f5ba0e9e17 to your computer and use it in GitHub Desktop.
setup eks and deploy sample app
module "eks" {
source = "terraform-aws-modules/eks/aws"
cluster_name = "eks"
subnets = ["${module.vpc.public_subnets}"]
vpc_id = "${module.vpc.vpc_id}"
worker_groups = [
{
instance_type = "m4.large"
asg_max_size = 5
}
]
tags = {
environment = "dev"
}
}
  1. Setup eks using terraform eks module
  2. Install or update aws cli pip3 install awscli --upgrade --user
  3. Install authenticator brew install aws-iam-authenticator
  4. Switch config to point to aws cluster aws eks --region eu-west-1 update-kubeconfig --name eks
  5. Test kubectl get svc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment