apiVersion: v1
kind: Pod
metadata:
  name: flexvolume-cifs-inline-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 一致
      # fstab~cifs/cifs -> driver: fstab/cifs
      driver: "fstab/cifs"
      fsType: "cifs"
      secretRef:
        name: "flexvolume-cifs-secret"
      options:
        # fix me
        # 插件在节点调用
        # networkPath: "//HIWIFI/sd/xunlei"
        # 10.254.0.45 为集群内 smb 服务端地址
        networkPath: "//10.254.0.45/share"
        mountOptions: "dir_mode=0777,file_mode=0777,vers=3.0" # noperm
