Before deploying, make sure to customize the deployment with the variables within the env.yml file.
Your aws credentials must be filled in the secrets.yml
file. Rename the template file secrets.yml-template to secrets.yml
and change the values according your needs.
Once done, start the deployment with vagrant up
.
Then, you should be able to login into the VM with vagrant ssh
and create the EKS cluster:
eksctl create cluster --name=$AWS_EKS_CLUSTER_NAME \
--region=$AWS_REGION \
--nodes=$AWS_EKS_NODE_COUNT \
--node-type=$AWS_EKS_NODE_VM_SIZE \
--node-volume-size=$AWS_EKS_NODE_DISK_SIZE \
--ssh-access --ssh-public-key $AWS_SSH_KEY \
--managed \
--kubeconfig=$AWS_EKS_KUBECONFIG
You can also choose to automatically create the cluster with vagrant by setting the env provision_k8s
to true
in the env file.
For deleting the cluster, execute this command:
eksctl delete cluster --region=$AWS_REGION --name=$AWS_EKS_CLUSTER_NAME
For deleting the VM, execute this command:
vagrant destroy