add accessModes (#38)

This commit is contained in:
Simon Smith 2020-11-15 20:41:16 +00:00 committed by GitHub
parent a36a6852cf
commit 463abed9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 33 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
description: nfs-client is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes. description: nfs-client is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes.
name: nfs-client-provisioner name: nfs-client-provisioner
version: 1.0.1 version: 1.0.2
appVersion: 3.1.0 appVersion: 3.1.0
home: https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client home: https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client
sources: sources:
@ -11,5 +11,5 @@ maintainers:
- name: ckotzbauer - name: ckotzbauer
email: christian.kotzbauer@gmail.com email: christian.kotzbauer@gmail.com
keywords: keywords:
- nfs - nfs
- storage - storage

View File

@ -1,6 +1,6 @@
# nfs-client-provisioner # nfs-client-provisioner
The [NFS client provisioner](https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client) is an automatic provisioner for Kubernetes that uses your *already configured* NFS server, automatically creating Persistent Volumes. The [NFS client provisioner](https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client) is an automatic provisioner for Kubernetes that uses your _already configured_ NFS server, automatically creating Persistent Volumes.
## TL;DR; ## TL;DR;
@ -45,29 +45,29 @@ 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. The following tables lists the configurable parameters of this chart and their default values.
| Parameter | Description | Default | | Parameter | Description | Default |
| --------------------------------- | ------------------------------------- | --------------------------------------------------------- | | ----------------------------------- | ----------------------------------------------------------- | ------------------------------------------------- |
| `replicaCount` | Number of provisioner instances to deployed | `1` | | `replicaCount` | Number of provisioner instances to deployed | `1` |
| `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` | | `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.repository` | Provisioner image | `quay.io/external_storage/nfs-client-provisioner` |
| `image.tag` | Version of provisioner image | `v3.1.0-k8s1.11` | | `image.tag` | Version of provisioner image | `v3.1.0-k8s1.11` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `storageClass.name` | Name of the storageClass | `nfs-client` | | `storageClass.name` | Name of the storageClass | `nfs-client` |
| `storageClass.defaultClass` | Set as the default StorageClass | `false` | | `storageClass.defaultClass` | Set as the default StorageClass | `false` |
| `storageClass.allowVolumeExpansion` | Allow expanding the volume | `true` | | `storageClass.allowVolumeExpansion` | Allow expanding the volume | `true` |
| `storageClass.reclaimPolicy` | Method used to reclaim an obsoleted volume | `Delete` | | `storageClass.reclaimPolicy` | Method used to reclaim an obsoleted volume | `Delete` |
| `storageClass.provisionerName` | Name of the provisionerName | null | | `storageClass.provisionerName` | Name of the provisionerName | null |
| `storageClass.archiveOnDelete` | Archive pvc when deleting | `true` | | `storageClass.archiveOnDelete` | Archive pvc when deleting | `true` |
| `nfs.server` | Hostname of the NFS server | null (ip or hostname) | | `storageClass.accessModes` | Set access mode for PV | `ReadWriteOnce` |
| `nfs.path` | Basepath of the mount point to be used | `/ifs/kubernetes` | | `nfs.server` | Hostname of the NFS server | null (ip or hostname) |
| `nfs.mountOptions` | Mount options (e.g. 'nfsvers=3') | null | | `nfs.path` | Basepath of the mount point to be used | `/ifs/kubernetes` |
| `resources` | Resources required (e.g. CPU, memory) | `{}` | | `nfs.mountOptions` | Mount options (e.g. 'nfsvers=3') | null |
| `rbac.create` | Use Role-based Access Control | `true` | | `resources` | Resources required (e.g. CPU, memory) | `{}` |
| `podSecurityPolicy.enabled` | Create & use Pod Security Policy resources | `false` | | `rbac.create` | Use Role-based Access Control | `true` |
| `priorityClassName` | Set pod priorityClassName | null | | `podSecurityPolicy.enabled` | Create & use Pod Security Policy resources | `false` |
| `serviceAccount.create` | Should we create a ServiceAccount | `true` | | `priorityClassName` | Set pod priorityClassName | null |
| `serviceAccount.name` | Name of the ServiceAccount to use | null | | `serviceAccount.create` | Should we create a ServiceAccount | `true` |
| `nodeSelector` | Node labels for pod assignment | `{}` | | `serviceAccount.name` | Name of the ServiceAccount to use | null |
| `affinity` | Affinity settings | `{}` | | `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate | `[]` | | `affinity` | Affinity settings | `{}` |
| `tolerations` | List of node taints to tolerate | `[]` |

View File

@ -10,7 +10,7 @@ spec:
storage: 10Mi storage: 10Mi
volumeMode: Filesystem volumeMode: Filesystem
accessModes: accessModes:
- ReadWriteOnce - {{ .Values.storageClass.accessModes }}
persistentVolumeReclaimPolicy: {{ .Values.storageClass.reclaimPolicy }} persistentVolumeReclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
storageClassName: "" storageClassName: ""
{{- if .Values.nfs.mountOptions }} {{- if .Values.nfs.mountOptions }}

View File

@ -5,7 +5,7 @@ metadata:
name: pvc-{{ template "nfs-client-provisioner.fullname" . }} name: pvc-{{ template "nfs-client-provisioner.fullname" . }}
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - {{ .Values.storageClass.accessModes }}
volumeMode: Filesystem volumeMode: Filesystem
storageClassName: "" storageClassName: ""
selector: selector:

View File

@ -39,6 +39,9 @@ storageClass:
# When set to false your PVs will not be archived by the provisioner upon deletion of the PVC. # When set to false your PVs will not be archived by the provisioner upon deletion of the PVC.
archiveOnDelete: true archiveOnDelete: true
# Set access mode - ReadWriteOnce, ReadOnlyMany or ReadWriteMany
accessModes: ReadWriteOnce
## For RBAC support: ## For RBAC support:
rbac: rbac:
# Specifies whether RBAC resources should be created # Specifies whether RBAC resources should be created
@ -60,7 +63,8 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: name:
resources: {} resources:
{}
# limits: # limits:
# cpu: 100m # cpu: 100m
# memory: 128Mi # memory: 128Mi