<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>

AlexWhite
<p>If the pod creation was successful with the volume attached (state of the ebs volume will change from &quot;available&quot; to &quot;in-use&quot; in AWS console), you could just do a <code>kubectl describe pod</code> and it should show up in Volumes with <code>VolumeID</code> similar to what you have in AWS:</p>
<p><a href="https://i.stack.imgur.com/vuGxF.png" rel="nofollow noreferrer">ebs-volume-info</a></p>
<p>Hope this answers your question.</p>
