mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #13371 from wb14123/glusterfs
Auto commit by PR queue bot
This commit is contained in:
		@@ -194,6 +194,7 @@ func TestExampleObjectSchemas(t *testing.T) {
 | 
				
			|||||||
		"../examples/glusterfs": {
 | 
							"../examples/glusterfs": {
 | 
				
			||||||
			"glusterfs-pod":       &api.Pod{},
 | 
								"glusterfs-pod":       &api.Pod{},
 | 
				
			||||||
			"glusterfs-endpoints": &api.Endpoints{},
 | 
								"glusterfs-endpoints": &api.Endpoints{},
 | 
				
			||||||
 | 
								"glusterfs-service":   &api.Service{},
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		"../docs/user-guide/liveness": {
 | 
							"../docs/user-guide/liveness": {
 | 
				
			||||||
			"exec-liveness": &api.Pod{},
 | 
								"exec-liveness": &api.Pod{},
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -75,6 +75,15 @@ NAME                ENDPOINTS
 | 
				
			|||||||
glusterfs-cluster   10.240.106.152:1,10.240.79.157:1
 | 
					glusterfs-cluster   10.240.106.152:1,10.240.79.157:1
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					We need also create a service for this endpoints, so that the endpoints will be persistented. We will add this service without a selector to tell Kubernetes we want to add its endpoints manually. You can see [glusterfs-service.json](glusterfs-service.json) for details.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Use this command to create the service:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```sh
 | 
				
			||||||
 | 
					$ kubectl create -f examples/glusterfs/glusterfs-service.json
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Create a POD
 | 
					### Create a POD
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The following *volume* spec in [glusterfs-pod.json](glusterfs-pod.json) illustrates a sample configuration.
 | 
					The following *volume* spec in [glusterfs-pod.json](glusterfs-pod.json) illustrates a sample configuration.
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										12
									
								
								examples/glusterfs/glusterfs-service.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								examples/glusterfs/glusterfs-service.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "kind": "Service",
 | 
				
			||||||
 | 
					  "apiVersion": "v1",
 | 
				
			||||||
 | 
					  "metadata": {
 | 
				
			||||||
 | 
					    "name": "glusterfs-cluster"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "spec": {
 | 
				
			||||||
 | 
					    "ports": [
 | 
				
			||||||
 | 
					      {"port": 1}
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user