Skip to content

Commit 4d6ad74

Browse files
Update Static Provisioning README.md to include information on mounttargetip option.
1 parent 1203d41 commit 4d6ad74

File tree

1 file changed

+24
-0
lines changed
  • examples/kubernetes/static_provisioning

1 file changed

+24
-0
lines changed

examples/kubernetes/static_provisioning/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,27 @@ Also you can verify that data is written onto EFS filesystem:
4848
```sh
4949
>> kubectl exec -ti efs-app -- tail -f /data/out.txt
5050
```
51+
52+
53+
**Note**
54+
55+
In certain use cases, it may be useful to provide the EFS Mount Target IP Address when performing static provisioning. This can optionally be specified in the PersistentVolume object specification ```volumeAttributes``` section. This allows the CSI Driver to mount via IP address directly without additional communication with a DNS server. Example:
56+
```
57+
apiVersion: v1
58+
kind: PersistentVolume
59+
metadata:
60+
name: efs-pv
61+
spec:
62+
capacity:
63+
storage: 5Gi
64+
volumeMode: Filesystem
65+
accessModes:
66+
- ReadWriteOnce
67+
storageClassName: efs-sc
68+
persistentVolumeReclaimPolicy: Retain
69+
csi:
70+
driver: efs.csi.aws.com
71+
volumeHandle:[FILESYSTEM ID]
72+
volumeAttributes:
73+
mounttargetip: "[MOUNT TARGET IP ADDRESS]"
74+
```

0 commit comments

Comments
 (0)