How do i auto delete persistence disks attached to my instances?

814 views
Skip to first unread message

uvi...@anutanetworks.com

unread,
Dec 12, 2018, 10:44:44 AM12/12/18
to gce-discussion
I have a kubernetes cluster with dynamic persistence volume attached using pd-ssd
Everything works fine but when i delete the cluster, I don't see the dynamically created the pvc or persistence disks being deleted. Is there any flag i can set in storage class or pv claim section?

On searching i did see a flag "Keep disk" at instance level. And similar flag in gcloud compute instances set-disk-auto-delete sdk page. Is this the only way for my case?

Please suggest if there is any flag which can be controlled during cluster creation/node pool addition.


PS: retain policy in storage class is set to delete as well.

Shamma Nikhat (Cloud Platform Support)

unread,
Dec 13, 2018, 2:57:36 PM12/13/18
to gce-discussion

I am able to reproduce your issue. I have already informed our GKE team to investigate the issue further.


By the time being a workaround is to avoid the issue is to delete the claim corresponding PersistentVolume object and it will also delete the provisioned Compute Engine persistent disk [1], before you delete the cluster.


[1] https://cloud.google.com/kubernetes-engine/docs/concepts/persistent-volumes#dynamic_provisioning

Shamma Nikhat (Cloud Platform Support)

unread,
Dec 14, 2018, 1:18:59 PM12/14/18
to gce-discussion
I have created a Public Issue Tracker regarding this issue. You can track the PIT [1] for any updates.

Reply all
Reply to author
Forward
0 new messages