diff --git a/stable/nfs-client-provisioner/Chart.yaml b/stable/nfs-client-provisioner/Chart.yaml index d0d63c3b64ca..a5c3108d8cd1 100644 --- a/stable/nfs-client-provisioner/Chart.yaml +++ b/stable/nfs-client-provisioner/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 3.1.0 description: nfs-client is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes. name: nfs-client-provisioner home: https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client -version: 1.2.8 +version: 1.2.9 sources: - https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client maintainers: diff --git a/stable/nfs-client-provisioner/README.md b/stable/nfs-client-provisioner/README.md index 310464095a9d..e6ab459a6c86 100644 --- a/stable/nfs-client-provisioner/README.md +++ b/stable/nfs-client-provisioner/README.md @@ -45,29 +45,30 @@ The command removes all the Kubernetes components associated with the chart and The following tables lists the configurable parameters of this chart and their default values. -| Parameter | Description | Default | -| --------------------------------- | ------------------------------------- | --------------------------------------------------------- | -| `replicaCount` | Number of provisioner instances to deployed | `1` | -| `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` | -| `image.repository` | Provisioner image | `quay.io/external_storage/nfs-client-provisioner` | -| `image.tag` | Version of provisioner image | `v3.1.0-k8s1.11` | -| `image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `storageClass.name` | Name of the storageClass | `nfs-client` | -| `storageClass.defaultClass` | Set as the default StorageClass | `false` | -| `storageClass.allowVolumeExpansion` | Allow expanding the volume | `true` | -| `storageClass.reclaimPolicy` | Method used to reclaim an obsoleted volume | `Delete` | -| `storageClass.provisionerName` | Name of the provisionerName | null | -| `storageClass.archiveOnDelete` | Archive pvc when deleting | `true` | -| `nfs.server` | Hostname of the NFS server | null (ip or hostname) | -| `nfs.path` | Basepath of the mount point to be used | `/ifs/kubernetes` | -| `nfs.mountOptions` | Mount options (e.g. 'nfsvers=3') | null | -| `resources` | Resources required (e.g. CPU, memory) | `{}` | -| `rbac.create` | Use Role-based Access Control | `true` | -| `podSecurityPolicy.enabled` | Create & use Pod Security Policy resources | `false` | -| `priorityClassName` | Set pod priorityClassName | null | -| `serviceAccount.create` | Should we create a ServiceAccount | `true` | -| `serviceAccount.name` | Name of the ServiceAccount to use | null | -| `nodeSelector` | Node labels for pod assignment | `{}` | -| `affinity` | Affinity settings | `{}` | -| `tolerations` | List of node taints to tolerate | `[]` | +| Parameter | Description | Default | +| ----------------------------------- | ----------------------------------------------------------- | ------------------------------------------------- | +| `replicaCount` | Number of provisioner instances to deployed | `1` | +| `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` | +| `image.repository` | Provisioner image | `quay.io/external_storage/nfs-client-provisioner` | +| `image.tag` | Version of provisioner image | `v3.1.0-k8s1.11` | +| `image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `storageClass.name` | Name of the storageClass | `nfs-client` | +| `storageClass.defaultClass` | Set as the default StorageClass | `false` | +| `storageClass.allowVolumeExpansion` | Allow expanding the volume | `true` | +| `storageClass.reclaimPolicy` | Method used to reclaim an obsoleted volume | `Delete` | +| `storageClass.provisionerName` | Name of the provisionerName | null | +| `storageClass.archiveOnDelete` | Archive pvc when deleting | `true` | +| `storageClass.accessModes` | Set access mode for PV | `ReadWriteOnce` | +| `nfs.server` | Hostname of the NFS server | null (ip or hostname) | +| `nfs.path` | Basepath of the mount point to be used | `/ifs/kubernetes` | +| `nfs.mountOptions` | Mount options (e.g. 'nfsvers=3') | null | +| `resources` | Resources required (e.g. CPU, memory) | `{}` | +| `rbac.create` | Use Role-based Access Control | `true` | +| `podSecurityPolicy.enabled` | Create & use Pod Security Policy resources | `false` | +| `priorityClassName` | Set pod priorityClassName | null | +| `serviceAccount.create` | Should we create a ServiceAccount | `true` | +| `serviceAccount.name` | Name of the ServiceAccount to use | null | +| `nodeSelector` | Node labels for pod assignment | `{}` | +| `affinity` | Affinity settings | `{}` | +| `tolerations` | List of node taints to tolerate | `[]` | diff --git a/stable/nfs-client-provisioner/templates/persistentvolume.yaml b/stable/nfs-client-provisioner/templates/persistentvolume.yaml index 62cec4b70c23..d13ad0b2cae1 100644 --- a/stable/nfs-client-provisioner/templates/persistentvolume.yaml +++ b/stable/nfs-client-provisioner/templates/persistentvolume.yaml @@ -10,7 +10,7 @@ spec: storage: 10Mi volumeMode: Filesystem accessModes: - - ReadWriteOnce + - {{ .Values.storageClass.accessModes }} persistentVolumeReclaimPolicy: {{ .Values.storageClass.reclaimPolicy }} storageClassName: "" {{- if .Values.nfs.mountOptions }} diff --git a/stable/nfs-client-provisioner/templates/persistentvolumeclaim.yaml b/stable/nfs-client-provisioner/templates/persistentvolumeclaim.yaml index 1afd6b3e3491..9bcf43099224 100644 --- a/stable/nfs-client-provisioner/templates/persistentvolumeclaim.yaml +++ b/stable/nfs-client-provisioner/templates/persistentvolumeclaim.yaml @@ -5,7 +5,7 @@ metadata: name: pvc-{{ template "nfs-client-provisioner.fullname" . }} spec: accessModes: - - ReadWriteOnce + - {{ .Values.storageClass.accessModes }} volumeMode: Filesystem storageClassName: "" selector: diff --git a/stable/nfs-client-provisioner/values.yaml b/stable/nfs-client-provisioner/values.yaml index 74942ae65add..90b985f36661 100644 --- a/stable/nfs-client-provisioner/values.yaml +++ b/stable/nfs-client-provisioner/values.yaml @@ -39,6 +39,9 @@ storageClass: # When set to false your PVs will not be archived by the provisioner upon deletion of the PVC. archiveOnDelete: true + # Set access mode - ReadWriteOnce, ReadOnlyMany or ReadWriteMany + accessModes: ReadWriteOnce + ## For RBAC support: rbac: # Specifies whether RBAC resources should be created