<p>I am trying to create a volume in EKS cluster, the background of the volume is basically it is a netapp volume on netapp server and it is also mounted to an EC2 instance which is in same VPC as EKS cluster. This volume is populated with files that are created by a different application.</p>

<p>Flink app that I am deploying to EKS cluster needs read only access to the aforementioned volume. As per kubernetes documentation I can create a PersistentVolume which I can access in the pods of flink cluster.</p>

<p>To create a PV, Using Netapp volume path like {netappaccount}/{instanceid}/{volumeid} or Using the path on EC2 which is already mounted would be better approach ?</p>

<p>If I can use Ec2 how can I create a PV, can I use {Ec2 ipaddress}/{mountpath} ?</p>

<p>Can I use NFS plugin like below ? or could you please suggest best practice ?</p>

<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv0001 
spec:     
  accessModes:
  - ReadOnlyOnce 
  nfs: 
    path: /tmp 
    server: EC2Box Ip address 
  persistentVolumeReclaimPolicy: Retain 
</code></pre>

VSK
<p>Your best option is Trident.
Cloud Manager can automate the deployment around it</p>

<p>Is your NetApp is Cloud Volumes ONTAP? 
You can reach out via the Cloud Manager chat for further information </p>
