mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 13:50:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			363 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			363 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| kind: Service
 | |
| apiVersion: v1beta1
 | |
| id: wpfrontend
 | |
| # the port that this service should serve on
 | |
| port: 80
 | |
| # identifies the set of pods to load balance
 | |
| # traffic to.
 | |
| selector:
 | |
|   name: wpfrontend
 | |
| # the container on each pod to connect to, can be a name
 | |
| # (e.g. 'www') or a number (e.g. 80)
 | |
| containerPort: 80
 | |
| labels:
 | |
|   name: wpfrontend
 | |
| createExternalLoadBalancer: true
 |