WARNING: Following this guide will completely remove your infrastructure from your Exoscale account. There is no way to rollback (even if you have backups, and you rebuild the infrastructure, you will loose your ingress pool public IP addresses).
- Edit the
terraform-kubernetes/main.tf
file: Search for theexoscale_nlb.ingress
resource definition:
resource "exoscale_nlb" "ingress" {
for_each = local.platform_components.kubernetes.ingresses
zone = local.platform_zone
name = "${local.platform_name}-ingress-${each.key}"
description = "Ingress load balancer (${each.key})"
lifecycle {
prevent_destroy = true
}
}
- Comment the
lifecycle
block:
resource "exoscale_nlb" "ingress" {
for_each = local.platform_components.kubernetes.ingresses
zone = local.platform_zone
name = "${local.platform_name}-ingress-${each.key}"
description = "Ingress load balancer (${each.key})"
# lifecycle {
# prevent_destroy = true
# }
}
- Then save the file with the commented block, and destroy the Kubernetes infrastructure: from the
terraform-kubernetes
sub-directory, runterraform destroy
. - Undo the change made at step 1.
- If applicable, fom the
terraform-cloudflare
sub-directory, runterraform destroy
.
- From the
terraform-base-configuration
sub-directory, runterraform destroy
.
- Remove everything from the
etcd
andvault
snapshost buckets (using the CLI, s3cmd, Web UI, etc.). - From the
terraform-base
sub-directory, runterraform destroy
.
- Delete templates from your Exoscale account:
Etcd x.y.z
Kubernetes x.y control plane
Kubernetes x.y node
Vault x.y.z
- Cleanup artifacts (files in the
artifacts
sub-directory):*.json
*.txt