Skip to content

Instantly share code, notes, and snippets.

@0xlen
Last active September 11, 2023 15:18
Show Gist options
  • Save 0xlen/15cd7f43fca4cc8483e70ed7fc85bcb5 to your computer and use it in GitHub Desktop.
Save 0xlen/15cd7f43fca4cc8483e70ed7fc85bcb5 to your computer and use it in GitHub Desktop.
$ kubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
testcase-0 alb * internal-k8s-default-testcase-93d8419948-541000771.us-west-2.elb.amazonaws.com 80 8m42s
testcase-1 alb * abcdefgh-default-bugfixtest-001-1356525548.us-west-2.elb.amazonaws.com 80 8m42s
testcase-2 alb * internal-abcdefgh-default-bugfixtest-002-541910110.us-west-2.elb.amazonaws.com 80 8m41s
testcase-3 alb * abcdefghijklmnopqrstuvwxyz012345-2118752702.us-west-2.elb.amazonaws.com 80 8m41s
testcase-4 alb * internal-abcdefghijklmnopqrstuvwxyz999999-67491582.us-west-2.elb.amazonaws.com 80 8m40s
testcase-long-long-long-long-case-5 alb * k8s-default-testcase-98cdbf582b-1474733506.us-west-2.elb.amazonaws.com 80 8m40s
testcase-long-long-long-long-case-6 alb * internal-k8s-default-testcase-fb10378931-824853021.us-west-2.elb.amazonaws.com 80 8m40s
$ ./eksctl delete cluster --region us-west-2 --name eks -v=4
2023-08-31 00:46:20 [▶] using v1 networking API
2023-08-31 00:46:20 [▶] ALB resource name: k8s-default-testcase-93d8419948
2023-08-31 00:46:21 [▶] tracking deletion of load balancer k8s-default-testcase-93d8419948 of kind 2 with security groups [sg-0a70e9c7ee40f978f sg-0307e680270ac6961]
2023-08-31 00:46:21 [▶] deleting ALB Ingress default/testcase-0
2023-08-31 00:46:21 [▶] ALB resource name: abcdefgh-default-bugfixtest-001
2023-08-31 00:46:22 [▶] tracking deletion of load balancer abcdefgh-default-bugfixtest-001 of kind 2 with security groups [sg-0ccf1708ae83703ce sg-0307e680270ac6961]
2023-08-31 00:46:22 [▶] deleting ALB Ingress default/testcase-1
2023-08-31 00:46:22 [▶] ALB resource name: abcdefgh-default-bugfixtest-002
2023-08-31 00:46:22 [▶] tracking deletion of load balancer abcdefgh-default-bugfixtest-002 of kind 2 with security groups [sg-02f91724e5214656e sg-0307e680270ac6961]
2023-08-31 00:46:22 [▶] deleting ALB Ingress default/testcase-2
2023-08-31 00:46:22 [▶] ALB resource name: abcdefghijklmnopqrstuvwxyz012345
2023-08-31 00:46:22 [▶] tracking deletion of load balancer abcdefghijklmnopqrstuvwxyz012345 of kind 2 with security groups [sg-0f824d0612caf06dc sg-0307e680270ac6961]
2023-08-31 00:46:22 [▶] deleting ALB Ingress default/testcase-3
2023-08-31 00:46:23 [▶] ALB resource name: abcdefghijklmnopqrstuvwxyz999999
2023-08-31 00:46:23 [▶] tracking deletion of load balancer abcdefghijklmnopqrstuvwxyz999999 of kind 2 with security groups [sg-0307e680270ac6961 sg-06ee5ade3b86e021c]
2023-08-31 00:46:23 [▶] deleting ALB Ingress default/testcase-4
2023-08-31 00:59:13 [▶] ALB Ingress name: k8s-default-testcase-98cdbf582b
2023-08-31 00:59:13 [▶] tracking deletion of load balancer k8s-default-testcase-98cdbf582b of kind 2 with security groups [sg-0307e680270ac6961 sg-077cd3b18dc7c4e1c]
2023-08-31 00:59:13 [▶] deleting ALB Ingress default/testcase-long-long-long-long-case-5
2023-08-31 00:59:13 [▶] ALB Ingress name: k8s-default-testcase-fb10378931
2023-08-31 00:59:14 [▶] tracking deletion of load balancer k8s-default-testcase-fb10378931 of kind 2 with security groups [sg-0307e680270ac6961 sg-0fba0bfc59781dbce]
2023-08-31 00:59:14 [▶] deleting ALB Ingress default/testcase-long-long-long-long-case-6
@0xlen
Copy link
Author

0xlen commented Sep 11, 2023

Another testing example:

$ k get ingress
NAME                                  CLASS   HOSTS   ADDRESS                                                                            PORTS   AGE
testcase-0                            alb     *       internal-k8s-default-testcase-93d8419948-1329669220.us-west-2.elb.amazonaws.com    80      106m
testcase-1                            alb     *       abcdefgh-default-bugfixtest-001-1606071862.us-west-2.elb.amazonaws.com             80      106m
testcase-2                            alb     *       internal-abcdefgh-default-bugfixtest-002-1818143719.us-west-2.elb.amazonaws.com    80      106m
testcase-3                            alb     *       abcdefghijklmnopqrstuvwxyz012345-1402630946.us-west-2.elb.amazonaws.com            80      106m
testcase-4                            alb     *       internal-abcdefghijklmnopqrstuvwxyz999999-1048829879.us-west-2.elb.amazonaws.com   80      106m
testcase-7                            alb     *       abcdefghijklmnopqrstuvw000-611379121.us-west-2.elb.amazonaws.com                   80      106m
testcase-8                            alb     *       internal-abcdefghijklmnopqrstuvw001-2138812853.us-west-2.elb.amazonaws.com         80      106m
testcase-long-long-long-long-case-5   alb     *       k8s-default-testcase-98cdbf582b-2114678713.us-west-2.elb.amazonaws.com             80      106m
testcase-long-long-long-long-case-6   alb     *       internal-k8s-default-testcase-fb10378931-1050359548.us-west-2.elb.amazonaws.com    80      106m

$ ./eksctl delete cluster --region us-west-2 --name eks -v=5
2023-09-11 13:47:26 [▶]  deleting ALB Ingress default/testcase-0
2023-09-11 13:47:26 [▶]  ALB resource name: abcdefgh-default-bugfixtest-001
2023-09-11 13:47:26 [▶]  tracking deletion of load balancer abcdefgh-default-bugfixtest-001 of kind 2 with security groups [sg-014afb8d04fe7dfa9 sg-0cd28f80fee48295f]
2023-09-11 13:47:26 [▶]  deleting ALB Ingress default/testcase-1
2023-09-11 13:47:26 [▶]  ALB resource name: abcdefgh-default-bugfixtest-002
2023-09-11 13:47:26 [▶]  tracking deletion of load balancer abcdefgh-default-bugfixtest-002 of kind 2 with security groups [sg-06031057be33af64c sg-0cd28f80fee48295f]
2023-09-11 13:47:26 [▶]  deleting ALB Ingress default/testcase-2
2023-09-11 13:47:27 [▶]  ALB resource name: abcdefghijklmnopqrstuvwxyz012345
2023-09-11 13:47:27 [▶]  tracking deletion of load balancer abcdefghijklmnopqrstuvwxyz012345 of kind 2 with security groups [sg-0faad87657790bf84 sg-0cd28f80fee48295f]
2023-09-11 13:47:27 [▶]  deleting ALB Ingress default/testcase-3
2023-09-11 13:47:27 [▶]  ALB resource name: abcdefghijklmnopqrstuvwxyz999999
2023-09-11 13:47:27 [▶]  tracking deletion of load balancer abcdefghijklmnopqrstuvwxyz999999 of kind 2 with security groups [sg-04587f1be8046260a sg-0cd28f80fee48295f]
2023-09-11 13:47:27 [▶]  deleting ALB Ingress default/testcase-4
2023-09-11 13:47:27 [▶]  ALB resource name: abcdefghijklmnopqrstuvw000
2023-09-11 13:47:28 [▶]  tracking deletion of load balancer abcdefghijklmnopqrstuvw000 of kind 2 with security groups [sg-0cd28f80fee48295f sg-0bd2fa739e18673f5]
2023-09-11 13:47:28 [▶]  deleting ALB Ingress default/testcase-7
2023-09-11 13:47:28 [▶]  ALB resource name: abcdefghijklmnopqrstuvw001
2023-09-11 13:47:28 [▶]  tracking deletion of load balancer abcdefghijklmnopqrstuvw001 of kind 2 with security groups [sg-0cd28f80fee48295f sg-0a5c9568c47b0fb58]
2023-09-11 13:47:28 [▶]  deleting ALB Ingress default/testcase-8
2023-09-11 13:47:28 [▶]  ALB resource name: k8s-default-testcase-98cdbf582b
2023-09-11 13:47:29 [▶]  tracking deletion of load balancer k8s-default-testcase-98cdbf582b of kind 2 with security groups [sg-0371f7aba192f1bca sg-0cd28f80fee48295f]
2023-09-11 13:47:29 [▶]  deleting ALB Ingress default/testcase-long-long-long-long-case-5
2023-09-11 13:47:29 [▶]  ALB resource name: k8s-default-testcase-fb10378931
2023-09-11 13:47:29 [▶]  tracking deletion of load balancer k8s-default-testcase-fb10378931 of kind 2 with security groups [sg-0bfbc82d42dc0aeb4 sg-0cd28f80fee48295f]
2023-09-11 13:47:29 [▶]  deleting ALB Ingress default/testcase-long-long-long-long-case-6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment