Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save carroarmato0/3b9f95bafc98f8b0bedc9106a5974cfc to your computer and use it in GitHub Desktop.
Save carroarmato0/3b9f95bafc98f8b0bedc9106a5974cfc to your computer and use it in GitHub Desktop.
eksctl not deleting NLBs
2022-06-29 12:38:03 [▶] role ARN for the current session is "arn:aws:<*redacted*>"
2022-06-29 12:38:04 [▶] cluster = &types.Cluster{Arn:(*string)(0xc000790c10), CertificateAuthority:(*types.Certificate)(0xc000790d20), ClientRequestToken:(*string)(nil), ConnectorConfig:(*types.ConnectorConfigResponse)(nil), CreatedAt:time.Date(2022, time.June, 28, 14, 30, 53, 468000000, time.UTC), EncryptionConfig:[]types.EncryptionConfig(nil), Endpoint:(*string)(0xc000790cd0), Identity:(*types.Identity)(0xc000790cf0), KubernetesNetworkConfig:(*types.KubernetesNetworkConfigResponse)(0xc0007e9bf0), Logging:(*types.Logging)(0xc000807200), Name:(*string)(0xc000790cc0), PlatformVersion:(*string)(0xc000790c80), ResourcesVpcConfig:(*types.VpcConfigResponse)(0xc000c20150), RoleArn:(*string)(0xc000790ce0), Status:"ACTIVE", Tags:map[string]string{"Name":"eksctl-cvan-elb-test3-cluster/ControlPlane", "alpha.eksctl.io/cluster-name":"cvan-elb-test3", "alpha.eksctl.io/cluster-oidc-enabled":"false", "alpha.eksctl.io/eksctl-version":"0.103.0", "aws:cloudformation:logical-id":"ControlPlane", "aws:cloudformation:stack-id":"arn:aws:cloudformation:us-east-1:030898168117:stack/eksctl-cvan-elb-test3-cluster/da762d30-f6ee-11ec-9e5f-1218334f70d1", "aws:cloudformation:stack-name":"eksctl-cvan-elb-test3-cluster", "eksctl.cluster.k8s.io/v1alpha1/cluster-name":"cvan-elb-test3"}, Version:(*string)(0xc000790ca0), noSmithyDocumentSerde:document.NoSerde{}}
2022-06-29 12:38:04 [ℹ] deleting EKS cluster "cvan-elb-test3"
2022-06-29 12:38:04 [▶] cfg.json = \
{
"kind": "ClusterConfig",
"apiVersion": "eksctl.io/v1alpha5",
"metadata": {
"name": "cvan-elb-test3",
"region": "us-east-1",
"version": "1.22"
},
"kubernetesNetworkConfig": {
"ipFamily": "IPv4"
},
"iam": {
"withOIDC": false,
"vpcResourceControllerPolicy": true
},
"vpc": {
"cidr": "192.168.0.0/16",
"manageSharedNodeSecurityGroupRules": true,
"autoAllocateIPv6": false,
"nat": {
"gateway": "Single"
}
},
"privateCluster": {
"enabled": false,
"skipEndpointCreation": false
},
"cloudWatch": {
"clusterLogging": {}
}
}
2022-06-29 12:38:05 [▶] cluster "cvan-elb-test3" was created by eksctl
2022-06-29 12:38:05 [▶] nodegroups = [0xc000fc4b40]
2022-06-29 12:38:05 [ℹ] will drain 0 unmanaged nodegroup(s) in cluster "cvan-elb-test3"
2022-06-29 12:38:05 [ℹ] starting parallel draining, max in-flight of 1
2022-06-29 12:38:05 [▶] deleting EKS addon "vpc-cni" if it exists
2022-06-29 12:38:06 [▶] EKS addon "vpc-cni" does not exist
2022-06-29 12:38:06 [▶] deleting kube-system/aws-node DaemonSet
2022-06-29 12:38:06 [▶] failed to delete kube-system/aws-node DaemonSet: %!w(*errors.StatusError=&{{{ } { <nil>} Failure daemonsets.apps "aws-node" not found NotFound 0xc001017080 404}})
2022-06-29 12:38:06 [▶] Fargate profile: list request: sending: &eks.ListFargateProfilesInput{ClusterName:(*string)(0xc000a62c70), MaxResults:(*int32)(nil), NextToken:(*string)(nil), noSmithyDocumentSerde:document.NoSerde{}}
2022-06-29 12:38:06 [▶] Fargate profile: list request: received 0 profile(s): &eks.ListFargateProfilesOutput{FargateProfileNames:[]string{}, NextToken:(*string)(nil), ResultMetadata:middleware.Metadata{values:map[interface {}]interface {}{middleware.attemptSkewKey{}:-621813622, middleware.rawResponseKey{}:(*http.Response)(0xc0005392b8), middleware.requestIDKey{}:"8363af9e-4ffc-4267-9891-c91445f7fdb3", middleware.responseAtKey{}:time.Time{wall:0xc0a728c3a5101f76, ext:3822011252, loc:(*time.Location)(0x73c3840)}, middleware.serverTimeKey{}:time.Time{wall:0x0, ext:63792095886, loc:(*time.Location)(nil)}, retry.attemptResultsKey{}:retry.AttemptResults{Results:[]retry.AttemptResult{retry.AttemptResult{Err:error(nil), Retryable:false, Retried:false, ResponseMetadata:middleware.Metadata{values:map[interface {}]interface {}{middleware.attemptSkewKey{}:-621813622, middleware.rawResponseKey{}:(*http.Response)(0xc0005392b8), middleware.requestIDKey{}:"8363af9e-4ffc-4267-9891-c91445f7fdb3", middleware.responseAtKey{}:time.Time{wall:0xc0a728c3a5101f76, ext:3822011252, loc:(*time.Location)(0x73c3840)}, middleware.serverTimeKey{}:time.Time{wall:0x0, ext:63792095886, loc:(*time.Location)(nil)}}}}}}}}, noSmithyDocumentSerde:document.NoSerde{}}
2022-06-29 12:38:06 [ℹ] deleted 0 Fargate profile(s)
2022-06-29 12:38:08 [▶] existing key "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff-22:5b:10:8c:10:3c:91:ee:f3:91:56:74:7b:60:1d:74" matches prefix
2022-06-29 12:38:08 [▶] existing key "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff-22:5b:10:8c:10:3c:91:ee:f3:91:56:74:7b:60:1d:74" matches fingerprint
2022-06-29 12:38:08 [▶] deleting key "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff-22:5b:10:8c:10:3c:91:ee:f3:91:56:74:7b:60:1d:74"
2022-06-29 12:38:08 [▶] removed cluster "cvan-elb-test3.us-east-1.eksctl.io" from kubeconfig
2022-06-29 12:38:08 [▶] removed context for "aws-go-sdk-1656426618479087543@cvan-elb-test3.us-east-1.eksctl.io" from kubeconfig
2022-06-29 12:38:08 [▶] removed user for "aws-go-sdk-1656426618479087543@cvan-elb-test3.us-east-1.eksctl.io" from kubeconfig
2022-06-29 12:38:08 [✔] kubeconfig has been updated
2022-06-29 12:38:08 [ℹ] cleaning up AWS load balancers created by Kubernetes objects of Kind Service or Ingress
2022-06-29 12:38:08 [▶] using v1 networking API
2022-06-29 12:38:09 [▶] tracking deletion of load balancer ad97fc714ab654c32a27e197a3716b7c of kind 0 with security groups [sg-01d9b662a4941205d]
2022-06-29 12:38:09 [▶] deleting 'type: LoadBalancer' Service default/ng-keycloak-http
2022-06-29 12:38:10 [▶] tracking deletion of load balancer a066310076a8049a59adad2e8815263c of kind 0 with security groups [sg-010e992582b96b18b]
2022-06-29 12:38:10 [▶] deleting 'type: LoadBalancer' Service <*redacted*>/infra-dashboard-alertmanager
2022-06-29 12:38:10 [▶] tracking deletion of load balancer a7e394ca3386445d4b505875a95adbf5 of kind 0 with security groups [sg-009fc5c0d9bb0979c]
2022-06-29 12:38:10 [▶] deleting 'type: LoadBalancer' Service <*redacted*>-cloud-infra/infra-dashboard-grafana
2022-06-29 12:39:06 [▶] load balancer ad97fc714ab654c32a27e197a3716b7c and its security groups were deleted by the cloud provider
2022-06-29 12:39:46 [▶] load balancer a066310076a8049a59adad2e8815263c and its security groups were deleted by the cloud provider
2022-06-29 12:40:42 [▶] load balancer a7e394ca3386445d4b505875a95adbf5 and its security groups were deleted by the cloud provider
2022-06-29 12:40:44 [▶] deleting load balancer Security Group orphans
2022-06-29 12:40:44 [▶] ignoring non-matching security group "eks-cluster-sg-cvan-elb-test3-69540994"
2022-06-29 12:40:45 [▶] iamserviceaccounts = []
2022-06-29 12:40:46 [▶] iamserviceaccounts = []
2022-06-29 12:40:46 [ℹ]
2 sequential tasks: { delete nodegroup "ng-0f66f3ff", delete cluster control plane "cvan-elb-test3"
}
2022-06-29 12:40:46 [▶] started task: delete nodegroup "ng-0f66f3ff"
2022-06-29 12:40:46 [▶] waiting for 1 parallel tasks to complete
2022-06-29 12:40:46 [▶] started task: delete nodegroup "ng-0f66f3ff"
2022-06-29 12:40:47 [ℹ] will delete stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff"
2022-06-29 12:40:47 [ℹ] waiting for stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff" to get deleted
2022-06-29 12:40:47 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff"
2022-06-29 12:41:17 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff"
2022-06-29 12:42:12 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff"
2022-06-29 12:44:02 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff"
2022-06-29 12:45:17 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff"
2022-06-29 12:47:04 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff"
2022-06-29 12:48:59 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff"
2022-06-29 12:49:44 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-nodegroup-ng-0f66f3ff"
2022-06-29 12:49:44 [▶] completed task: delete nodegroup "ng-0f66f3ff"
2022-06-29 12:49:44 [▶] completed task: delete nodegroup "ng-0f66f3ff"
2022-06-29 12:49:44 [▶] started task: delete cluster control plane "cvan-elb-test3"
2022-06-29 12:49:45 [ℹ] will delete stack "eksctl-cvan-elb-test3-cluster"
2022-06-29 12:49:45 [ℹ] waiting for stack "eksctl-cvan-elb-test3-cluster" to get deleted
2022-06-29 12:49:45 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-cluster"
2022-06-29 12:50:15 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-cluster"
2022-06-29 12:51:16 [ℹ] waiting for CloudFormation stack "eksctl-cvan-elb-test3-cluster"
2022-06-29 12:51:16 [▶] completed task: delete cluster control plane "cvan-elb-test3"
2022-06-29 12:51:16 [▶] No stacks found for cvan-elb-test3
2022-06-29 12:51:17 [▶] No stacks found for cvan-elb-test3
2022-06-29 12:51:17 [✔] all cluster resources were deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment