<p>I have a cluster in AWS and have a deployment there. Now I want to attach an external AWS disk there. I am following the tutorial but didn't get how to indicate my disk there. Here is the code:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: test-ebs
spec:
  containers:
  - image: k8s.gcr.io/test-webserver
    name: test-container
    volumeMounts:
    - mountPath: /test-ebs
      name: test-volume
  volumes:
  - name: test-volume
    # This AWS EBS volume must already exist.
    awsElasticBlockStore:
      volumeID: &quot;&lt;volume id&gt;&quot;
      fsType: ext4
</code></pre>
<p>Seems to me that I should indicate my disk at volume. Where should I take volume id then? And how connect it to my cluster?</p>

<p><code>volumeID</code>: This is the AWS volume that will be used.</p>
<p>You can use the AWS CLI to get the volume ID assigned to your instance.</p>
<p>CLI command:</p>
<p><code>aws ec2 describe-volumes</code></p>
<p>see the <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-volumes.html" rel="nofollow noreferrer">doc</a> for getting the volume ID with using <code>describe-volumes</code></p>
<p>for ex:</p>
<pre><code>apiVersion: &quot;v1&quot;
kind: &quot;PersistentVolume&quot;
metadata:
  name: &quot;pv0001&quot; 
spec:
  capacity:
    storage: &quot;5Gi&quot; 
  accessModes:
    - &quot;ReadWriteOnce&quot;
  awsElasticBlockStore: 
    fsType: &quot;ext4&quot; 
    volumeID: &quot;vol-f37a03aa&quot; 
</code></pre>
