Skip to content

moroleandro/complete-eks-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Initial to terraform in EKS (1.18) at AWS

Codebase to create the infrastructure as code for an EKS environment on AWS

Install modules

terraform init

Apply infrastructure

terraform apply --auto-approve

Run tests infrastructure

terraform validate

Apply applications on cluster

kubectl apply -f k8s/apps/faker.yml
kubectl apply -f k8s/apps/whois.yml
kubectl apply -f k8s/apps/pudim.yml

Apply ingress controller on cluster (Traefik)

kubectl apply -f k8s/traefik/ingress.yml

Usage services on cluster

  • Whois -> sample query data from a dns record
  • Faker -> returns data from random people
  • Pudim -> return sample HTML

Usage dashboard Traefik

http://{ELB-Hash}.us-east-1.elb.amazonaws.com:8080/

Test service WHOIS

http://{ELB-Hash}.us-east-1.elb.amazonaws.com/whois/google.com | jq .

Test service FAKER

http://{ELB-Hash}.us-east-1.elb.amazonaws.com/faker | jq .

Test service PUDIM

http://{ELB-Hash}.us-east-1.elb.amazonaws.com/ -H `Host: pudim.me` 
  • After create panel Route 53 (AWS) zone www.pudim.me CNAME of load balancer
http://pudim.me

Author

@moroleandro

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages