iammateus / terraform-kubernetes-aws

Example of deploying a Kubernetes cluster to AWS using Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform, Kubernetes & AWS

This repository contains an example of deploying and managing a Kubernetes cluster to AWS using Amazon EKS and Terraform, an open-source infrastructure as code software tool.

The provisioned Kubernetes cluster has sample resources that offer an IP-accessible Nginx server.

Project structure

.
├── k8s              #  Kubernetes manifests of the example server
└── terraform        #  Terraform configuration files

Requirements

Usage

The requirements must be met for the commands below to work.

# Change current directory to "terraform"
$ cd terraform

# Apply all changes to your AWS account
$ terraform apply

# After Terraform finishes applying the changes, you need to configure your kubectl.
$ aws eks --region $(terraform output -raw region) update-kubeconfig --name $(terraform output -raw cluster_name)

# Use kubectl to list all resources of the created namespace
$ kubectl get all -n brincadeirinha

License

MIT

About

Example of deploying a Kubernetes cluster to AWS using Terraform

License:MIT License


Languages

Language:HCL 100.0%