This repo contains files that will help you to create a K8s cluster using eksctl on the fly.
- Install AWS CLI.
- Install JQ.
- Create a AWS account with admin rights.
- Helm.
- iam authenticator.
- eksctl.
- Kustomize
- Istioctl
- Mac OS
export AWS_ACCESS_KEY_ID=[...]
export AWS_SECRET_ACCESS_KEY=[...]
export AWS_DEFAULT_REGION=[...]
MASTER_COUNT=3 MAX_NODE_COUNT=10 NAME=prageethw MIN_NODE_COUNT=0 DESIRED_NODE_COUNT=1 NODE_TYPE=t3.medium MY_ORG_DNS_NAME=prageethw.com USE_HELM=true UPDATE_ISTIO_MESH="" INSTALL_ISTIO_MESH=true BASIC_AUTH_PWD=abcd1234 time sh -x build-k8s-cluster.sh
Note: Above command will create a cluster named example with 3 master nodes and 3 worker nodes in each AZ. BASIC_AUTH_PWD is the password you need to login to monitoring and alerting systems.To set something false pass "" as the value
sh delete-k8s-cluster.sh
To cleanup all AWS resources and temporary files
Users of can be given a package (.zip) file that will be generated in /cluster/keys. as part of design there are 4 types of such packages generated ops,dev,test and admin.
Once users get their package, they can read README.md and point them to K8s cluster. login details for Kube dashboard, monitoring and alerting tools will be displayed as part of context set.
MAX_NODE_COUNT=10 MIN_NODE_COUNT=0 DESIRED_NODE_COUNT=1 NODE_TYPE=t3.medium time sh -x update-k8s-cluster.sh