mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 22:01:06 +00:00 
			
		
		
		
	Search and replace for references to moved examples Reverted find and replace paths on auto gen docs Reverting changes to changelog Fix bugs in test-cmd.sh Fixed path in examples README ran update-all successfully Updated verify-flags exceptions to include renamed files
		
			
				
	
	
		
			31 lines
		
	
	
		
			660 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			660 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # This pod mounts the nfs volume claim into /usr/share/nginx/html and
 | |
| # serves a simple web page.
 | |
| 
 | |
| apiVersion: v1
 | |
| kind: ReplicationController
 | |
| metadata:
 | |
|   name: nfs-web
 | |
| spec:
 | |
|   replicas: 2
 | |
|   selector:
 | |
|     role: web-frontend
 | |
|   template:
 | |
|     metadata:
 | |
|       labels:
 | |
|         role: web-frontend
 | |
|     spec:
 | |
|       containers:
 | |
|       - name: web
 | |
|         image: nginx
 | |
|         ports:
 | |
|           - name: web
 | |
|             containerPort: 80
 | |
|         volumeMounts:
 | |
|             # name must match the volume name below
 | |
|             - name: nfs
 | |
|               mountPath: "/usr/share/nginx/html"
 | |
|       volumes:
 | |
|       - name: nfs
 | |
|         persistentVolumeClaim:
 | |
|           claimName: nfs
 |