Pod 中的容器在運行時產生的文件跟數據在磁碟上都是暫時儲存的,而容器崩潰可能會導致數據丟失。 Volume 就是為了解決此問題誕生的,他允許 Pod 內容器彼此間交換數據,或做數據的持久性儲存Volume 分成以下幾種:EphemeralVolume ⇒ 臨時卷PersistentVolume ⇒ 持久卷ProjectedVolume ⇒ 投射卷StorageClass ⇒ 存儲類別hostPath ⇒ 節點綁定 配置定義spec.volumes 進行 volume 的設定spec.containers[*].volumeMounts 進行 Pod 內容器掛載 volume 的位置