Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Persistant Volumes in kubernetes #24

Open
bialad opened this issue May 16, 2017 · 3 comments
Open

Persistant Volumes in kubernetes #24

bialad opened this issue May 16, 2017 · 3 comments

Comments

@bialad
Copy link

bialad commented May 16, 2017

I've been trying to wrap my head around dynamic persistent storage for kubernetes on azure for a long time now, without success.

I see documentation on kubernets.io, in this repo, in blogs but they all seem vague to me and I never get it to work.

The issue might not belong here, since dynamic provisioning seems to be implemented and working. I'm now running against manually created storage blobs, and that is working. But dynamic provisioning just seems so awesome (and necessary in some cases) I want to know what I'm missing.

Is it as easy as it seems, or are there some requirements not covered by these tutorials? Could I spin up a cluster with az acs create and expect it to work, using storageClass for example.

@Globegitter
Copy link

One thing that is not mentioned @bialad in most places, first you need to create the stoarge account and then a blob container called 'vhds'. I think I have read some talk about this being done automatically, but for now this needs to be done manually and is not really obvious. Got stock on that for a while as well. Hope it helps.

@bialad
Copy link
Author

bialad commented Jul 26, 2017

Thanks for the answer.

I got it working now by creating a storage account in the same resource group. Is this a requirement? When I used a PersistentVolume to mount from another resource group it worked fine.

If I create a blob container, isn't that public accessible then. Or is it "public" to the resource group?

@andyzhangx
Copy link

@bialad are you using "azure file" storage class? In current version, a storage account must be created in same resource group.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants