Skip to content

timvw/sample-terraform-aws-k8s-nginx-letsencrypt

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

notes for building a kubernetes cluster on AWS with Terraform

terraform init terraform apply -auto-approve aws eks --region $AWS_DEFAULT_REGION update-kubeconfig --name demo

aws ec2 describe-regions |
jq -r '.Regions[] | .RegionName' |
gxargs -l aws resourcegroupstaggingapi get-resources --region |
jq '.ResourceTagMappingList[] | .ResourceARN'

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.29.0/deploy/static/mandatory.yaml kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.29.0/deploy/static/provider/aws/service-l4.yaml kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.29.0/deploy/static/provider/aws/patch-configmap-l4.yaml

aws elb describe-load-balancers | jq -r '.LoadBalancerDescriptions[].DNSName'

kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.13.0/cert-manager.yaml kubectl apply -f letsencrypt.yaml

kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node kubectl expose deployment hello-node --port=8080 kubectl apply -f hello-node-ingress.yaml

https://docs.aws.amazon.com/eks/latest/userguide/dashboard-tutorial.html

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml kubectl apply -f dashboard-sa.yaml kubectl apply -f dashboard-ingress.yaml

kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep eks-admin | awk '{print $1}')

curl -v https://kubernetes-dashboard.aws.icteam.be

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages