Add example for hostPath volume type

This commit is contained in:
Rachel Willmer
2016-04-19 09:12:47 +01:00
parent f973b70cd4
commit 71539b23da
+20
View File
@@ -117,6 +117,26 @@ Watch out when using this type of volume, because:
* when Kubernetes adds resource-aware scheduling, as is planned, it will not be * when Kubernetes adds resource-aware scheduling, as is planned, it will not be
able to account for resources used by a `hostPath` able to account for resources used by a `hostPath`
#### Example pod
```yaml
apiVersion: v1
kind: Pod
metadata:
name: test-hostpath
spec:
containers:
- image: myimage
name: test-container
volumeMounts:
- mountPath: /test-hostpath
name: test-volume
volumes:
- name: test-volume
hostPath:
path: /path/to/my/dir
```
### gcePersistentDisk ### gcePersistentDisk
A `gcePersistentDisk` volume mounts a Google Compute Engine (GCE) [Persistent A `gcePersistentDisk` volume mounts a Google Compute Engine (GCE) [Persistent