apiVersion: v1
kind: Pod
metadata:
  name: flexvolume-cifs-test
  namespace: default
  labels:
    app: test
spec:
  containers:
  - name: flexvolume-cifs-test
    image: busybox
    command:
      - sleep
      - "36000"
    imagePullPolicy: IfNotPresent
    volumeMounts:
    - name: data
      mountPath: /data
  volumes:
  - name: data
    flexVolume:
      # 与 kubelet 卷插件路径
      # (--volume-plugin-dir=/usr/libexec/kubernetes/kubelet-plugins/volume/exec )
      #                                                     vendor~driver/driver
      # /usr/libexec/kubernetes/kubelet-plugins/volume/exec/fstab~cifs/cifs 一致
      driver: "fstab/cifs"
      fsType: "cifs"
      secretRef:
        name: "flexvolume-cifs-secret"
      options:
        networkPath: "//HIWIFI/sd/xunlei"
        mountOptions: "dir_mode=0755,file_mode=0644,noperm"
