Add multi PV support to EFS
This commit is contained in:
parent
54335c4c0a
commit
959d61ef66
@ -1,9 +1,9 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: kubezero-aws-efs-csi-driver
|
name: kubezero-aws-efs-csi-driver
|
||||||
description: KubeZero Umbrella Chart for aws-efs-csi-driver
|
description: KubeZero Umbrella Chart for aws-efs-csi-driver
|
||||||
version: 0.1.1
|
version: 0.2.0
|
||||||
appVersion: 1.0.0
|
appVersion: 1.0.0
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.17.0-0"
|
||||||
home: https://kubezero.com
|
home: https://kubezero.com
|
||||||
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
|
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# kubezero-aws-efs-csi-driver
|
# kubezero-aws-efs-csi-driver
|
||||||
|
|
||||||
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
|
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
|
||||||
|
|
||||||
KubeZero Umbrella Chart for aws-efs-csi-driver
|
KubeZero Umbrella Chart for aws-efs-csi-driver
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ KubeZero Umbrella Chart for aws-efs-csi-driver
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Kubernetes: `>=1.16.0-0`
|
Kubernetes: `>=1.17.0-0`
|
||||||
|
|
||||||
| Repository | Name | Version |
|
| Repository | Name | Version |
|
||||||
|------------|------|---------|
|
|------------|------|---------|
|
||||||
@ -29,13 +29,20 @@ Kubernetes: `>=1.16.0-0`
|
|||||||
Optionally creates the *efs-cs* storage class.
|
Optionally creates the *efs-cs* storage class.
|
||||||
Could also be made the default storage class if requested.
|
Could also be made the default storage class if requested.
|
||||||
|
|
||||||
|
## Multiple PVs & PVCs backed by same EFS file system
|
||||||
|
Details also see: [Reserve PV](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#reserving-a-persistentvolume)
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| PersistentVolume.EfsId | string | `""` | |
|
| PersistentVolumes[0].claimRef.name | string | `"foo-pvc"` | |
|
||||||
| PersistentVolume.Name | string | `""` | |
|
| PersistentVolumes[0].claimRef.namespace | string | `"foo"` | |
|
||||||
| PersistentVolume.create | bool | `false` | |
|
| PersistentVolumes[0].mountOptions[0] | string | `"tls"` | |
|
||||||
|
| PersistentVolumes[0].name | string | `"example-pv"` | |
|
||||||
|
| PersistentVolumes[0].volumeHandle | string | `"<efs-id>:/path"` | |
|
||||||
|
| PersistentVolumes[1].name | string | `"example-pv2"` | |
|
||||||
|
| PersistentVolumes[1].volumeHandle | string | `"<efs-id>:/path2"` | |
|
||||||
| StorageClass.create | bool | `true` | |
|
| StorageClass.create | bool | `true` | |
|
||||||
| StorageClass.default | bool | `false` | |
|
| StorageClass.default | bool | `false` | |
|
||||||
| aws-efs-csi-driver.nodeSelector | object | `{}` | |
|
| aws-efs-csi-driver.nodeSelector | object | `{}` | |
|
||||||
|
@ -17,4 +17,7 @@
|
|||||||
Optionally creates the *efs-cs* storage class.
|
Optionally creates the *efs-cs* storage class.
|
||||||
Could also be made the default storage class if requested.
|
Could also be made the default storage class if requested.
|
||||||
|
|
||||||
|
## Multiple PVs & PVCs backed by same EFS file system
|
||||||
|
Details also see: [Reserve PV](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#reserving-a-persistentvolume)
|
||||||
|
|
||||||
{{ template "chart.valuesSection" . }}
|
{{ template "chart.valuesSection" . }}
|
||||||
|
28
charts/kubezero-aws-efs-csi-driver/templates/efs_pvs.yaml
Normal file
28
charts/kubezero-aws-efs-csi-driver/templates/efs_pvs.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{{- range .Values.PersistentVolumes }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: {{ default "kubezero-efs-pv" .name }}
|
||||||
|
labels:
|
||||||
|
{{ include "kubezero-lib.labels" $ | indent 4 }}
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 5Gi
|
||||||
|
volumeMode: Filesystem
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
storageClassName: efs-sc
|
||||||
|
csi:
|
||||||
|
driver: efs.csi.aws.com
|
||||||
|
volumeHandle: {{ .volumeHandle }}
|
||||||
|
{{- with .mountOptions }}
|
||||||
|
mountOptions:
|
||||||
|
{{- . | toYaml | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .claimRef }}
|
||||||
|
claimRef:
|
||||||
|
{{- . | toYaml | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
{{- end }}
|
@ -5,7 +5,20 @@ aws-efs-csi-driver:
|
|||||||
StorageClass:
|
StorageClass:
|
||||||
create: true
|
create: true
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
|
#PersistentVolumes:
|
||||||
|
# - name: example-pv
|
||||||
|
# mountOptions:
|
||||||
|
# - tls
|
||||||
|
# volumeHandle: "<efs-id>:/path"
|
||||||
|
# claimRef:
|
||||||
|
# name: foo-pvc
|
||||||
|
# namespace: foo
|
||||||
|
#
|
||||||
|
# - name: example-pv2
|
||||||
|
# volumeHandle: "<efs-id>:/path2"
|
||||||
|
|
||||||
|
# Deprecated and removed with next release
|
||||||
PersistentVolume:
|
PersistentVolume:
|
||||||
create: false
|
create: false
|
||||||
EfsId: ""
|
EfsId: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user