Kubernetes Storage

参考文章:https://kubernetes.io/docs/concepts/storage/volumes/

容器中的磁盘文件是短暂的,这为在容器中运行重要的应用程序带来了一些问题。

第一 当容器崩溃时,Kubelet将会重启容器,这时候数据文件就会丢失。

第二 在同一个Pod中的容器通常需要共享数据。

Kubernetes使用Volume抽象解决了这两个问题。  

Kubernetes supports several types of Volumes:

  • awsElasticBlockStore
  • azureDisk
  • azureFile
  • cephfs
  • configMap
  • csi
  • downwardAPI
  • emptyDir
  • fc (fibre channel)
  • flocker
  • gcePersistentDisk
  • gitRepo
  • glusterfs
  • hostPath
  • iscsi
  • local
  • nfs
  • persistentVolumeClaim
  • projected
  • portworxVolume
  • quobyte
  • rbd
  • scaleIO
  • secret
  • storageos
  • vsphereVolume

猜你喜欢

转载自www.cnblogs.com/vincenshen/p/9030490.html