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

How to attach a specific Managed Disk ? #1484

Closed
theobolo opened this issue Sep 25, 2017 · 6 comments
Closed

How to attach a specific Managed Disk ? #1484

theobolo opened this issue Sep 25, 2017 · 6 comments

Comments

@theobolo
Copy link

Hello guys, just wondering how can i attach a specific managed disk (for example created from an old VHDs disk).

I'm migrating my clusters to the last ACS release and i want to migrate my application disks from old VHDS to Managed Disks and then specify into the deployment Yaml file, my managed disk for that application (i don't need a dynamic provisioning for those Statefull applications).

Used to do :

 - azureDisk:
          diskURI: https://integrationk8s.blob.core.windows.net/jenkins-master/example.vhd
          diskName: jenkins-master-data

Since we don't have any URI with managed Disks, i'm really not sure how to do it.

Thanks !

@jackfrancis
Copy link
Member

@anhowe is this a supported (or available, but unsupported) workflow?

@theobolo
Copy link
Author

Should be great to handle it for update scenarios :D

@andyzhangx
Copy link
Contributor

@theobolo static provisioning for azure disk does not support managed disk, you could only use existing azure unmanaged disk in unmanaged VM

@andyzhangx
Copy link
Contributor

andyzhangx commented Nov 18, 2017

@theobolo I was wrong, actually k8s already support attach a specifc manage disk, below is an example:
https://raw.githubusercontent.com/andyzhangx/Demo/master/linux/azuredisk/nginx-pod-azuredisk-static-mgrdisk.yaml

For detailed steps, you could refer to following link:
https://github.com/andyzhangx/Demo/tree/master/linux/azuredisk#static-provisioning-for-azure-disk

@andyzhangx
Copy link
Contributor

@theobolo have you tried that, is it ok to close it?

@theobolo
Copy link
Author

theobolo commented Dec 25, 2017

Oups Sorry i was on vacation ... I gonna try this as soon as possible !

edit : Wonderfull it's working ! i'm wondering if it can be added to acs-engine documentation because it's very usefull :D

Thanks a lot @andyzhangx you can close now !

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