侧边栏壁纸
博主头像
★街角晚灯★博主等级

博观而约取 厚积而薄发

  • 累计撰写 466 篇文章
  • 累计创建 185 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

阿里云 ACK 集群挂载对象存储 OSS 及子目录方式

WinJay
2021-06-03 / 0 评论 / 0 点赞 / 491 阅读 / 1121 字 / 正在检测是否收录...
温馨提示:
文章发布较早,内容可能过时,阅读注意甄别。。。。
apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-70show
  namespace: nerc-project
  labels:
    alicloud-pvname: pv-oss-70show
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  csi:
    driver: ossplugin.csi.alibabacloud.com
    volumeAttributes:
      akId: 'LTAI4GHvPBF6FiiK1aMYVmVZ'
      akSecret: '2k3j7cRnArLJqGp76tk7pmykNuWTqa'
      bucket: "fzstorage"
      url: "oss-cn-beijing.aliyuncs.com"
      otherOpts: "-o max_stat_cache_size=0 -o allow_other"
      path: "/70show"
    volumeHandle: 'pv-oss-40show'
  persistentVolumeReclaimPolicy: Retain
  storageClassName: oss
  volumeMode: Filesystem

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc-70show
  namespace: nerc-project
spec:
  accessModes:
    - ReadWriteMany
  storageClassName: oss
  resources:
    requests:
      storage: 1Gi
  selector:
    matchLabels:
      alicloud-pvname: pv-oss-70show

image.png

0
  1. 支付宝打赏

    qrcode alipay
  2. 微信打赏

    qrcode weixin

评论区