This repo is part of the bundle.
PARAM | NOTES |
---|---|
k8s-create-eks-fargate | scripts to create Kubernetes cluster on EKS with Fargate |
k8s-create-flux-cd | scripts to setup GitOps with FluxCD |
k8s-microservice-one | first sample microservice to be deployed into cluster |
k8s-microservice-two | second sample microservice to be deployed into cluster |
k8s-microservices-app-infra | infrastructure manifest files for two microservices app |
Contains scripts for creating and deleting a cluster on AWS EKS.
To create EKS Cluster run:
./eks-create.sh
This will:
- Create EKS Cluster using eksctl
- Create AWS Load Balancer Controller and
- Deploy the Kubernetes Dashboard
Edit Cluster Configuration in eksctl-cluster.yaml
file.
Make sure you add all the Namespaces that you want to run on Fargate.
This will start the proxy, listen on port 8080, listen on all interfaces, and will disable the filtering of non-localhost requests. This command will continue to run in the background of the current terminal’s session.
kubectl proxy --port=8080 --address=0.0.0.0 --disable-filter=true &
aws eks get-token --cluster-name test-cluster --region us-west-1
If you have active services in your cluster that are associated with a load balancer, you must delete those services before deleting the cluster so that the load balancers are deleted properly. Otherwise, you can have orphaned resources in your VPC that prevent you from being able to delete the VPC. https://docs.aws.amazon.com/eks/latest/userguide/delete-cluster.html
Delete all Ingresses:
kubectl delete ingress production-ingress-prod -n production &&
kubectl delete ingress staging-ingres-staging -n staging