Persistent Volumes In Azure

Kubernetes dla każdego – sztuka konteneryzacji

Persistent Volumes in Azure

Dostępne rozwiązania na Azure:

Managed Disks

Azure Files

kubectl get sc

kubectl describe sc default

kubectl describe sc managed-premium

cat 1_storageclass.yaml

kubectl apply -f 1_storageclass.yaml

kubectl get sc

cat 2_customrole.yaml

kubectl apply -f 2_customrole.yaml

cat 3_pvc.yaml

kubectl apply -f 3_pvc.yaml

cat 4_deployment.yaml

kubectl apply -f 4_deployment.yaml

kubectl get pod -o wide

kubectl exec -it <PodName>/bin/bash