Creating a Kubernetes Cluster on AWS Using Kubernetes Operations
Small talk about getting a Kubernetes cluster up & running on AWS. In this talk, I describe about few gotchas that you might run into when setting up a k8s cluster
below group policies ◦ AmazonEC2FullAccess ◦ AmazonRoute53FullAccess ◦ AmazonS3FullAccess ◦ IAMFullAccess ◦ AmazonVPCFullAccess • Creates a user to this group • Creates S3 bucket to store state
domain ◦ *caveat: kops needs to be v1.6.2 & above ▪ Cluster name must end in .k8s.local • Kops creates security groups for SSH open to all ◦ Always review what kops does with kops edit cluster $NAME • Kops creates masters & nodes in public subnet
2x t2.medium for nodes by default. ◦ Size accordingly. • Kops creates a new VPC, IGW, subnet but you can make it reuse existing VPC & subnets ◦ export VPC_ID=vpc-12345678 ◦ export NETWORK_CIDR=10.100.0.0/16 ◦ kops create cluster ${NAME} --vpc=${VPC_ID}
Node IG • Edit IG, changes reflect on all instances ◦ kops get instancegroups ◦ kops edit ig ◦ kops update cluster ${NAME} • Changes apply to new instances only! ◦ Do a rolling update to update existing instances
Highly Available Kubernetes cluster with Kops - https://renzedevries.wordpress.com/2017/02/09/deploying-a-highly-available-kuber netes-cluster-to-aws-using-kops/ • AWS Blog - https://aws.amazon.com/blogs/compute/kubernetes-clusters-aws-kops/ • Backstory of Kubernetes - https://changelog.com/podcast/250