https://github.com/timvw/sample-terraform-aws-k8s-nginx-letsencrypt
https://github.com/timvw/sample-terraform-aws-k8s-nginx-letsencrypt
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/timvw/sample-terraform-aws-k8s-nginx-letsencrypt
- Owner: timvw
- Created: 2020-02-16T18:42:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T19:12:21.000Z (over 5 years ago)
- Last Synced: 2025-01-01T12:22:34.443Z (5 months ago)
- Language: HCL
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 demoaws 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.yamlaws 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.yamlkubectl 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.yamlkubectl -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