Skip to content

Commit 7569724

Browse files
authored
Update persistent storage verification instructions
Clarify instructions for verifying persistence of storage in Kubernetes.
1 parent b2c31d4 commit 7569724

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

learn-pr/wwl-data-ai/configure-apps-azure-kubernetes-service/includes/4-persistent-storage.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Attach persistent storage to an app
2-
31
AI services sometimes need durable storage for embeddings, cached artifacts, or conversation state. Container filesystems are ephemeral by default. Data is lost when a Pod restarts or moves to a different node. PersistentVolume (PV) and PersistentVolumeClaim (PVC) provide storage that survives Pod restarts and rescheduling. You declare a PVC to request storage with specific capacity and access modes. Kubernetes binds the claim to a PersistentVolume that meets your requirements. Azure provides multiple storage options for AKS including CSI drivers that integrate Azure storage services and Azure Container Storage for container-optimized performance.
42

53
This unit focuses on using CSI drivers with standard Kubernetes storage patterns. CSI drivers provision Azure Disk or Azure Files resources through pre-configured StorageClasses.
@@ -75,7 +73,7 @@ spec:
7573

7674
## Verify persistence
7775

78-
Apply your PVC and Deployment manifests. Use `kubectl describe pvc` to check that the claim is bound to a volume. Use `kubectl get pods` to confirm your Pods are running. To test persistence, write a file to the mount path inside a Pod. Delete the Pod and wait for Kubernetes to create a replacement. Check that the file still exists in the new Pod to confirms that data survives Pod restarts. Before you move to production, run small load tests to verify that I/O performance meets your expectations. These manifests are typically stored in files named *pvc.yaml* (PVC) and *deployment.yaml* (Deployment).
76+
Apply your PVC and Deployment manifests. Use `kubectl describe pvc` to check that the claim is bound to a volume. Use `kubectl get pods` to confirm your Pods are running. To test persistence, write a file to the mount path inside a Pod. Delete the Pod and wait for Kubernetes to create a replacement. Check that the file still exists in the new Pod to confirm that data survives Pod restarts. Before you move to production, run small load tests to verify that I/O performance meets your expectations. These manifests are typically stored in files named *pvc.yaml* (PVC) and *deployment.yaml* (Deployment).
7977

8078
```bash
8179
kubectl apply -f pvc.yaml
@@ -88,4 +86,4 @@ kubectl describe pod -l app=web-api
8886

8987
- [Storage options for applications in AKS](/azure/aks/concepts-storage) - Compare storage types and access modes
9088
- [Use managed identity for Azure Files](/azure/aks/azure-files-csi#use-managed-identity-to-access-azure-files-storage-preview) - Configure identity-based access for Azure Files
91-
- [Statically provision volumes with Azure Disk](/azure/aks/azure-csi-disk-storage-provision#statically-provision-a-volume) - Configure permissions for external storage accounts and resource groups
89+
- [Statically provision volumes with Azure Disk](/azure/aks/azure-csi-disk-storage-provision#statically-provision-a-volume) - Configure permissions for external storage accounts and resource groups

0 commit comments

Comments
 (0)