Skip to content

Terraform project to automate the provisioning of a Kubernetes cluster on AWS

Notifications You must be signed in to change notification settings

saurabtharu/terraform-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Project for Kubernetes Cluster Setup on AWS

Prerequisite Tool

Usage

configure aws cli

Command: aws configure

user@my-computer ~/g/terraform-k8s (main)> aws configure
AWS Access Key ID [****************UF4V]: *************
AWS Secret Access Key [****************tsmw]: *********************************** 
Default region name [us-east-1]:
Default output format [json]:
# Install terraform module
terraform init

# See what resources will be created in aws
terraform plan

# create directory to store collection of nodes and IP address
mkdir -p files

# Apply the terraform file
terraform apply

# Change the permission for the private key so that ssh can be done
chmod 600 private-key.pem

# Use ansible to create setup k8s cluster
ansible-playbook -i inventory.yml playbook.yml

About

Terraform project to automate the provisioning of a Kubernetes cluster on AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages