mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			392 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			392 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
kind: Service
 | 
						|
apiVersion: v1beta1
 | 
						|
id: mysql
 | 
						|
# the port that this service should serve on
 | 
						|
port: 3306
 | 
						|
# just like the selector in the replication controller,
 | 
						|
# but this time it identifies the set of pods to load balance
 | 
						|
# traffic to.
 | 
						|
selector:
 | 
						|
  name: mysql
 | 
						|
# the container on each pod to connect to, can be a name
 | 
						|
# (e.g. 'www') or a number (e.g. 80)
 | 
						|
containerPort: 3306
 | 
						|
labels:
 | 
						|
  name: mysql
 |