mirror of
				https://github.com/kelseyhightower/kubernetes-the-hard-way.git
				synced 2025-11-04 02:02:33 +03:00 
			
		
		
		
	update cleanup guide
This commit is contained in:
		@@ -120,19 +120,6 @@ aws elb delete-load-balancer \
 | 
				
			|||||||
  --load-balancer-name kubernetes
 | 
					  --load-balancer-name kubernetes
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Security Groups
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
SECURITY_GROUP_ID=$(aws ec2 describe-security-groups \
 | 
					 | 
				
			||||||
  --filters "Name=tag:Name,Values=kubernetes" | \
 | 
					 | 
				
			||||||
  jq -r '.SecurityGroups[].GroupId')
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
aws ec2 delete-security-group \
 | 
					 | 
				
			||||||
  --group-id ${SECURITY_GROUP_ID}
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#### Internet Gateways
 | 
					#### Internet Gateways
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
@@ -158,6 +145,19 @@ aws ec2 delete-internet-gateway \
 | 
				
			|||||||
  --internet-gateway-id ${INTERNET_GATEWAY_ID}
 | 
					  --internet-gateway-id ${INTERNET_GATEWAY_ID}
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### Security Groups
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					SECURITY_GROUP_ID=$(aws ec2 describe-security-groups \
 | 
				
			||||||
 | 
					  --filters "Name=tag:Name,Values=kubernetes" | \
 | 
				
			||||||
 | 
					  jq -r '.SecurityGroups[].GroupId')
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					aws ec2 delete-security-group \
 | 
				
			||||||
 | 
					  --group-id ${SECURITY_GROUP_ID}
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Subnets
 | 
					#### Subnets
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user