text
stringlengths
0
59.1k
---pvc-xxx-xxx-xxxx.vhd
```
The following rules apply:
1. Maximum # of accounts created by K8S for shared PVC is **100**.
2. Maximum # of disks per account is 60 (VHDs).
3. K8S will create new account for new disks if * utilization(AccountType(NEWDISK)) > 50% * keeping total # of accounts below 100.
4. K8S will create initial 2 accounts ( 1 standard and 1 premium ) to accelerate the provisioning process.
## Additional Notes
The samples assume that you have a cluster with node labeled with #disktype=blob# for VMs that are using blob disks and #disktype=managed# for VMs that are using managed disks. You can label your nodes or remove the node selector before using the files.
> Note: You can not attach managed disks to VMs that are not using managed OS disks. This applies also the other way around no blob disks on VMS that are using managed OS disks
To label your nodes use the following command
```
kubectl label nodes {node-name-here} disktype=blob
```
<|endoftext|>
# source: k8s_examples/_archived/volumes/azure_disk/claim/blob-based-disk/shared-hdd/pod-uses-shared-hdd.yaml type: yaml
kind: Pod
apiVersion: v1
metadata:
name: pod-uses-shared-hdd-5g
labels:
name: storage
spec:
containers:
- image: nginx
name: az-c-01
command:
- /bin/sh
- -c
- while true; do echo $(date) >> /mnt/blobdisk/outfile; sleep 1; done
volumeMounts:
- name: blobdisk01
mountPath: /mnt/blobdisk
volumes:
- name: blobdisk01
persistentVolumeClaim:
claimName: pv-dd-shared-hdd-5g
<|endoftext|>
# source: k8s_examples/_archived/volumes/azure_disk/claim/blob-based-disk/shared-hdd/storageclass-shared-hdd.yaml type: yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: sharedhdd
provisioner: kubernetes.io/azure-disk
parameters:
skuname: Standard_LRS
kind: Shared
<|endoftext|>
# source: k8s_examples/_archived/volumes/azure_disk/claim/blob-based-disk/shared-hdd/pvc-on-shared-hdd.yaml type: yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pv-dd-shared-hdd-5g
annotations:
volume.beta.kubernetes.io/storage-class: sharedhdd
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
<|endoftext|>
# source: k8s_examples/_archived/volumes/azure_disk/claim/blob-based-disk/dedicated-hdd/pod-uses-dedicated-hdd.yaml type: yaml
kind: Pod
apiVersion: v1
metadata:
name: pod-uses-dedicated-hdd-5g
labels:
name: storage
spec:
containers:
- image: nginx
name: az-c-01
command:
- /bin/sh
- -c
- while true; do echo $(date) >> /mnt/blobdisk/outfile; sleep 1; done
volumeMounts:
- name: blobdisk01
mountPath: /mnt/blobdisk
volumes:
- name: blobdisk01
persistentVolumeClaim:
claimName: pv-dd-dedicated-hdd-5g
<|endoftext|>
# source: k8s_examples/_archived/volumes/azure_disk/claim/blob-based-disk/dedicated-hdd/pvc-on-dedicated-hdd.yaml type: yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pv-dd-dedicated-hdd-5g