美文网首页
flexVolume 类型的PV,使用ceph filesyst

flexVolume 类型的PV,使用ceph filesyst

作者: wenfc | 来源:发表于2019-01-03 21:59 被阅读0次

    apiVersion: v1

    kind: PersistentVolume

    metadata:

      name: ceph-pv

      labels:

        name: ceph-pv

    spec:

      capacity:

        storage: 2Gi

      accessModes:

        - ReadWriteMany

      flexVolume:

        driver: ceph.rook.io/rook

        fsType: ceph

        options:

          fsName: myfs # name of the filesystem specified in the filesystem CRD.

          clusterNamespace: rook-ceph # namespace where the Rook cluster is deployed

      persistentVolumeReclaimPolicy: Retain

    ---

    apiVersion: v1

    kind: PersistentVolumeClaim

    metadata:

      name: ceph-pvc

      namespace: kubeflow

    spec:

      accessModes:

        - ReadWriteMany

      storageClassName: ""

      resources:

        requests:

          storage: 2Gi

      volumeName: ceph-pv

    相关文章

      网友评论

          本文标题:flexVolume 类型的PV,使用ceph filesyst

          本文链接:https://www.haomeiwen.com/subject/ycfcrqtx.html