<p>I'm dynamically provisioning a EBS Volume (Kubernetes on AWS through EKS) through PersistentVolumeClaim with a StorageClass </p>

<pre><code>apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: k8sebs
parameters:
  encrypted: "false"
  type: gp2
  zones: us-east-1a
provisioner: kubernetes.io/aws-ebs
reclaimPolicy: Delete
volumeBindingMode: Immediate 
</code></pre>

<p>PVC below</p>

<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: testk8sclaim
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: k8sebs
  resources:
    requests:
      storage: 1Gi
</code></pre>

<p>And pod that uses the volume:</p>

<pre><code>kind: Pod
apiVersion: v1
metadata:
  name: mypod
spec:
  containers:
    - name: alpine
      image: alpine:3.2
      volumeMounts:
      - mountPath: "/var/k8svol"
        name: mypd
  volumes:
    - name: mypd
      persistentVolumeClaim:
        claimName: testk8sclaim
</code></pre>

<p>I need to tag the EBS volume with a custom tag.</p>

<p>Documentation mentions nothing about tagging for provisioner aws-ebs, storageclass or PVC. I've spent hours to try to add a tag to the dynamically provided EBS volume but not luck.</p>

<p>Is creating custom tags for EBS a possibility in this scenario and if it is how can it be achieved?</p>

<p>Thank you,</p>

<p>Greg</p>

Greg Hill
<p>Seems like at this point in time is not something possible yet.</p>

<p>Found these:</p>

<p><a href="https://github.com/kubernetes/kubernetes/pull/49390" rel="noreferrer">https://github.com/kubernetes/kubernetes/pull/49390</a></p>

<p><a href="https://github.com/kubernetes/kubernetes/issues/50898" rel="noreferrer">https://github.com/kubernetes/kubernetes/issues/50898</a></p>

<p>Hopefully something will be done soon.</p>
