mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			694 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			694 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| id: nginx-controller
 | |
| apiVersion: v1beta1
 | |
| kind: ReplicationController
 | |
| desiredState:
 | |
|   replicas: 2
 | |
|   # replicaSelector identifies the set of Pods that this
 | |
|   # replicaController is responsible for managing
 | |
|   replicaSelector:
 | |
|     name: nginx
 | |
|   # podTemplate defines the 'cookie cutter' used for creating
 | |
|   # new pods when necessary
 | |
|   podTemplate:
 | |
|     desiredState:
 | |
|       manifest:
 | |
|         version: v1beta1
 | |
|         id: nginx
 | |
|         containers:
 | |
|           - name: nginx
 | |
|             image: dockerfile/nginx
 | |
|             ports:
 | |
|               - containerPort: 80
 | |
|     # Important: these labels need to match the selector above
 | |
|     # The api server enforces this constraint.
 | |
|     labels:
 | |
|       name: nginx
 |