| @ -0,0 +1,26 @@ | |||||
| apiVersion: v1 | |||||
| kind: Pod | |||||
| metadata: | |||||
| name: busybox | |||||
| namespace: default | |||||
| spec: | |||||
| containers: | |||||
| - name: busybox | |||||
| image: busybox | |||||
| command: | |||||
| - sleep | |||||
| - "3600" | |||||
| imagePullPolicy: IfNotPresent | |||||
| volumeMounts: | |||||
| - name: test | |||||
| mountPath: /data | |||||
| volumes: | |||||
| - name: test | |||||
| flexVolume: | |||||
| driver: "fstab/cifs" | |||||
| fsType: "cifs" | |||||
| secretRef: | |||||
| name: "cifs-secret" | |||||
| options: | |||||
| networkPath: "//192.168.1.34/Tino" | |||||
| mountOptions: "dir_mode=0755,vers=1.0,file_mode=0644,noperm" | |||||
| @ -0,0 +1,9 @@ | |||||
| apiVersion: v1 | |||||
| kind: Secret | |||||
| metadata: | |||||
| name: cifs-secret | |||||
| namespace: default | |||||
| type: fstab/cifs | |||||
| data: | |||||
| username: 'VGlubw==' | |||||
| password: 'UmV5MTE3Ng==' | |||||