Browse Source

Añado driver para montar equipos samba (cifs)

main
Tino 4 years ago
parent
commit
6301355bc4
2 changed files with 35 additions and 0 deletions
  1. +26
    -0
      Cifs/pod.yaml
  2. +9
    -0
      Cifs/secret.yaml

+ 26
- 0
Cifs/pod.yaml View File

@ -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"

+ 9
- 0
Cifs/secret.yaml View File

@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: cifs-secret
namespace: default
type: fstab/cifs
data:
username: 'VGlubw=='
password: 'UmV5MTE3Ng=='

Loading…
Cancel
Save