Todo Volume deve ter seu tipo definido. O tipo do Volume determina o meio que o suporta e seu comportamento em tempo de execução(The type determines the medium that backs the Volume and its runtime behavior).
A documentação do Kubernetes oferece uma longa lista de tipos de Volumes. Alguns destes tipos são azureDisk, awsElasticBlockStore e gcePersistentDisk que estarão disponíveis apenas se o cluster Kubernetes for criado em um Cloud Provider específico. A tabela abaixo exibe uma lista de Volumes que são relevantes para o exame CKAD.
Description | |
---|---|
emptyDir | Empty directory in Pod with read/write access. Only persisted for the lifespan of a Pod. A good choice for cache implementations or data exchange between containers of a Pod. |
hostPath | File or directory from the host node’s filesystem. |
configMap, secret | Provides a way to inject configuration data. For practical examples, see ‣ . |
nfs | An existing NFS (Network File System) share. Preserves data after Pod restart. |
persistentVolumeClaim | Claims a Persistent Volume. Fore more information, see ‣ . |
Documentação Persistent Volumes