Skip to content

Cloud (aws) based kubernetes cluster as well as supporting network/other infrastructure in easily deployable terraform modules. Uses kOps for cluster setup

License

Notifications You must be signed in to change notification settings

Bh-an/Kubernetes-cluster-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IAC Kubernetes cluster

  • The terraform modules create supporting infrastructure for a kube cluster like VPC's, RDS, Peering connection, bucket etc
  • The create_cluster script uses the kOps library to setup kube cluster configuration into terraform which can then be applied onto previously created resources

To set up networking and other aws resources:

cd main

Change variables in terraform.tfvars

terraform init
terraform plan
terraform apply

Note: The values for cluster configuration can be shown through terraform output *after resources are set up

For setting up the cluster:

cd cluster
export AWS_PROFILE=kops_user

bash create_cluster.sh [-n cluster_name] [-v vpc_id] [-b bucket_name] [-c new-key-path] [-e existing-public-key-path] [-s public-subnets] [-p private subnets]

This will generate tf file into the current folder, to apply the cluster resources:

terraform init
terraform plan
terraform apply

Validating cluster:

kops validate cluster --state=s3://<BUCKET_NAME> --name=<CLUSTER_NAME> --wait 10m

About

Cloud (aws) based kubernetes cluster as well as supporting network/other infrastructure in easily deployable terraform modules. Uses kOps for cluster setup

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published