mirror of
				https://github.com/kelseyhightower/kubernetes-the-hard-way.git
				synced 2025-11-04 02:02:33 +03:00 
			
		
		
		
	update docs
This commit is contained in:
		@@ -37,19 +37,23 @@ service "nginx" exposed
 | 
				
			|||||||
kubectl describe svc nginx
 | 
					kubectl describe svc nginx
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
Name:			nginx
 | 
					Name:			  nginx
 | 
				
			||||||
Namespace:		default
 | 
					Namespace:		  default
 | 
				
			||||||
Labels:			run=nginx
 | 
					Labels:			  run=nginx
 | 
				
			||||||
Selector:		run=nginx
 | 
					Selector:		  run=nginx
 | 
				
			||||||
Type:			NodePort
 | 
					Type:			  NodePort
 | 
				
			||||||
IP:			10.32.0.199
 | 
					IP:			      10.32.0.199
 | 
				
			||||||
Port:			<unset>	80/TCP
 | 
					Port:			  <unset>	80/TCP
 | 
				
			||||||
NodePort:		<unset>	32345/TCP
 | 
					NodePort:		  <unset>	32345/TCP
 | 
				
			||||||
Endpoints:		10.200.0.2:80,10.200.1.2:80,10.200.2.2:80
 | 
					Endpoints:		  10.200.0.2:80,10.200.1.2:80,10.200.2.2:80
 | 
				
			||||||
Session Affinity:	None
 | 
					Session Affinity: None
 | 
				
			||||||
No events.
 | 
					No events.
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					gcloud compute firewall-rules create nginx-service --allow=tcp:32345
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
gcloud compute instances list
 | 
					gcloud compute instances list
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
@@ -67,10 +71,6 @@ worker1      us-central1-f  n1-standard-1               10.240.0.31  104.197.163
 | 
				
			|||||||
worker2      us-central1-f  n1-standard-1               10.240.0.32  104.154.41.9     RUNNING
 | 
					worker2      us-central1-f  n1-standard-1               10.240.0.32  104.154.41.9     RUNNING
 | 
				
			||||||
````
 | 
					````
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					 | 
				
			||||||
gcloud compute firewall-rules create nginx-service --allow=tcp:32345
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
curl http://104.155.181.141:32345
 | 
					curl http://104.155.181.141:32345
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user