Disconnect and Teardown EKS
Scenarios: Instructor-Led, Self-Paced
Uninstall Ingress
This will remove the AWS Load Balancer.
- In ‘classgroup/cluster-management’ Start the Web IDE.
- Edit the file applications/ingress/helmfile.yaml
- Update the text installed: true to installed: false
- Edit the file applications/cert-manager/helmfile.yaml
- Update the text installed: true to installed: false
- Click Commit…
- Select Commit to master branch
- Click Commit
- Wait for the GitLab deployment to complete successfully.
- To validate removal of the AWS load balancer created by the ingress chart, in the ‘AWS EC2 Console’, in the left hand navigation, under ‘Load balancing’, Click Load Balancers
- None of the Load Balancers should have their ‘Tag’ details matching Key = kubernetes.io/cluster/spot2azuseast2 with Value = owned
Teardown EKS Quick Start Stack
This will remove the EKS cluster and all that it contains.
- Open the AWS CloudFormation console and on the upper right, in the region selector Select us-east-2
- Set ‘View nested’ (toggle) to off
- Select the stack that created the EKS cluster (default name for these docs = spot2azuseast2)
- In the upper right, Click Delete (button)
Optionally Remove the Advanced Configuration Stack
The advanced configuration stack only hold parameters and does not consume any resources, if you might use it again to redeploy a stack with the same configuration, it is more efficient to not tear it down.
- Open the AWS CloudFormation console and on the upper right, in the region selector Select us-east-2
- Set ‘View nested’ (toggle) to off
- Select the stack that created the Advanced Configuration (default name for these docs = spot-t2-medium-v120-paramset)
- In the upper right, Click Delete (button)
GitLab CleanUp
- If you do not have other clusters associated with your cluster-management project and will not reuse it:
- In ‘classgroup/cluster-management’ Click Infrastructure => Kubernetes clusters
- Use the trash can icons to delete all agent registrations.
- To delete the project in ‘classgroup/cluster-management’ Click Settings => General => Advanced => Delete project
- Type the indicated full project path and Click Yes, delete project
- To delete the project in ‘classgroup/Auto DevOps-security-scanning’ Click Settings => General => Advanced => Delete project
- Type the indicated full project path and Click Yes, delete project