For administrators
Adding a new cluster
2 min
prerequesties make sure the hosty blueprint is applied and you are using the user generated by hosty blueprint running tofu plan shouldn't result in any changes detected adding a cluster open main tf file and uncomment or add a new cluster definition you can rely on comments within the module cluster \<clustername> section to correctly set the values importantly, it is required at this stage to allow public access to eks cluster endpoint you can leave locals projects variable empty and add the projects after the cluster has been successfully created run tofu apply command and confirm the operation this will create vpc, eks cluster and rds cluster the operation will take a while ( 10 15 minutes) make sure not to interrupt the operation destroying the cluster as a first step enable public access to the eks cluster endpoints and perform tofu apply this is to ensure that we can still access the eks cluster endpoints, once vpn for the cluster is deleted from aws perform tofu destroy target=module cluster \<clustername and confirm the operation for example tofu destroy target=module cluster phoenix the operation will take a while ( 10 15 minutes) make sure not to interrupt the operation open main tf file and comment out or remove a the target cluster definition also, remove or comment out any project hosted on this cluster from locals projects variable