Hendelser
31. mars, 23 - 2. apr., 23
Det største stoff-, Power BI- og SQL-læringsarrangementet. 31. mars til 2. april. Bruk koden FABINSIDER til å spare USD 400.
Registrer deg i dagDenne nettleseren støttes ikke lenger.
Oppgrader til Microsoft Edge for å dra nytte av de nyeste funksjonene, sikkerhetsoppdateringene og den nyeste tekniske støtten.
You can clone persistent volumes in Azure Container Storage. A cloned volume is a duplicate of an existing persistent volume. You can only clone volumes of the same size that are in the same storage pool.
Follow the instructions below to clone a persistent volume.
Use your favorite text editor to create a YAML manifest file such as code acstor-clonevolume.yaml
.
Paste in the following code and save the file. A built-in storage class supports volume cloning, so for dataSource be sure to reference a PVC previously created by the Azure Container Storage storage class. For example, if you created the PVC for Azure Disks, it might be called azurediskpvc
. For storage, specify the size of the original PVC.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-acstor-cloning
spec:
accessModes:
- ReadWriteOnce
storageClassName: acstor-azuredisk
resources:
requests:
storage: 100Gi
dataSource:
kind: PersistentVolumeClaim
name: azurediskpvc
Apply the YAML manifest file to clone the PVC.
kubectl apply -f acstor-clonevolume.yaml
You should see output similar to:
persistentvolumeclaim/pvc-acstor-cloning created
Use your favorite text editor to create a YAML manifest file such as code acstor-pod.yaml
.
Paste in the following code and save the file. For claimName, be sure to reference the cloned PVC.
kind: Pod
apiVersion: v1
metadata:
name: fiopod2
spec:
nodeSelector:
acstor.azure.com/io-engine: acstor
volumes:
- name: azurediskpv
persistentVolumeClaim:
claimName: pvc-acstor-cloning
containers:
- name: fio
image: nixery.dev/shell/fio
args:
- sleep
- "1000000"
volumeMounts:
- mountPath: "/volume"
name: azurediskpv
Apply the YAML manifest file to deploy the new pod.
kubectl apply -f acstor-pod.yaml
You should see output similar to the following:
pod/fiopod2 created
Check that the pod is running and that the persistent volume claim has been bound successfully to the pod:
kubectl describe pod fiopod2
kubectl describe pvc azurediskpvc
Hendelser
31. mars, 23 - 2. apr., 23
Det største stoff-, Power BI- og SQL-læringsarrangementet. 31. mars til 2. april. Bruk koden FABINSIDER til å spare USD 400.
Registrer deg i dagOpplæring
Modul
Megismerheti a tárolási fogalmakat, amelyek segítenek megoldani az Azure Kubernetes Service-en (AKS) és az AKS Hybriden futó Windows-tárolókkal kapcsolatos valós problémákat.