attach <json params>
detach <mount device>
mount <mount dir> <mount device> <json params> unmount <mount dir> 以cifs为例子,参考代码https://github.com/sigma/cifs_k8s_plugin/blob/master/cifs.sh 使用插件 pod.yml: apiVersion: v1 kind: Pod metadata: name: cc spec: containers: - name: cc image: nginx volumeMounts: - name: test mountPath: /data ports: - containerPort: 80 volumes: - name: test flexVolume: driver: "hodique.info/cifs" #/usr/libexec/kubernetes/kubelet-plugins/volume/exec/hodique.info/cifs secretRef: name: cifscreds readOnly: true options: source: "//192.168.56.101/TEST" mountOptions: "dir_mode=0700,file_mode=0600"