Merge pull request #4601 from calfonso/nfs_mount_plugin

NFSMount storage plugin for kubelet.
This commit is contained in:
Tim Hockin
2015-03-19 11:19:12 -07:00
14 changed files with 524 additions and 1 deletions

View File

@@ -199,6 +199,8 @@ type VolumeSource struct {
GitRepo *GitRepoVolumeSource `json:"gitRepo" description:"git repository at a particular revision"`
// Secret represents a secret that should populate this volume.
Secret *SecretVolumeSource `json:"secret" description:"secret to populate volume"`
// NFS represents an NFS mount on the host that shares a pod's lifetime
NFS *NFSVolumeSource `json:"nfs" description:"NFS volume that will be mounted in the host machine"`
}
// HostPathVolumeSource represents bare host directory volume.
@@ -266,6 +268,19 @@ type SecretVolumeSource struct {
Target ObjectReference `json:"target" description:"target is a reference to a secret"`
}
// NFSVolumeSource represents an NFS mount that lasts the lifetime of a pod
type NFSVolumeSource struct {
// Server is the hostname or IP address of the NFS server
Server string `json:"server" description:"the hostname or IP address of the NFS server"`
// Path is the exported NFS share
Path string `json:"path" description:"the path that is exported by the NFS server"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the NFS export to be mounted with read-only permissions
ReadOnly bool `json:"readOnly,omitempty" description:"forces the NFS export to be mounted with read-only permissions"`
}
// ContainerPort represents a network port in a single container.
type ContainerPort struct {
// Optional: If specified, this must be a DNS_LABEL. Each named port