mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-04 03:03:14 -05:00 
			
		
		
		
	
		
			
	
	
		
			20 lines
		
	
	
		
			352 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
		
			352 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| 
								 | 
							
								apiVersion: v1
							 | 
						||
| 
								 | 
							
								kind: ReplicationController
							 | 
						||
| 
								 | 
							
								metadata:
							 | 
						||
| 
								 | 
							
								  name: nginx-controller
							 | 
						||
| 
								 | 
							
								  namespace: poddemo
							 | 
						||
| 
								 | 
							
								spec:
							 | 
						||
| 
								 | 
							
								  replicas: 2
							 | 
						||
| 
								 | 
							
								  selector:
							 | 
						||
| 
								 | 
							
								    role: load-balancer
							 | 
						||
| 
								 | 
							
								  template:
							 | 
						||
| 
								 | 
							
								    metadata:
							 | 
						||
| 
								 | 
							
								      labels:
							 | 
						||
| 
								 | 
							
								        role: load-balancer
							 | 
						||
| 
								 | 
							
								    spec:
							 | 
						||
| 
								 | 
							
								      containers:
							 | 
						||
| 
								 | 
							
								        - name: nginx
							 | 
						||
| 
								 | 
							
								          image: coreos/nginx
							 | 
						||
| 
								 | 
							
								          ports:
							 | 
						||
| 
								 | 
							
								            - containerPort: 80
							 |