mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 22:01:06 +00:00 
			
		
		
		
	Adds a document on pod templates that can be shared between various controller docs. Move more philosophical content to later in the doc. Add more task-oriented stuff earlier. Put example config in the document, early on, so users have something concrete to relate the discussion of fields to. Link to Job and DaemonSet docs. Make format more like that of Job and DaemonSet docs. Use jsonpath in examples, which is available in v1.1. Added example files.
		
			
				
	
	
		
			20 lines
		
	
	
		
			303 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			303 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| apiVersion: v1
 | |
| kind: ReplicationController
 | |
| metadata:
 | |
|   name: nginx
 | |
| spec:
 | |
|   replicas: 3
 | |
|   selector:
 | |
|     app: nginx
 | |
|   template:
 | |
|     metadata:
 | |
|       name: nginx
 | |
|       labels:
 | |
|         app: nginx
 | |
|     spec:
 | |
|       containers:
 | |
|       - name: nginx
 | |
|         image: nginx
 | |
|         ports:
 | |
|         - containerPort: 80
 |