From 6301355bc4055977f5954d885f8bda146c034df2 Mon Sep 17 00:00:00 2001 From: Tino Date: Mon, 5 Jul 2021 12:56:42 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1ado=20driver=20para=20montar=20equipos?= =?UTF-8?q?=20samba=20(cifs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cifs/pod.yaml | 26 ++++++++++++++++++++++++++ Cifs/secret.yaml | 9 +++++++++ 2 files changed, 35 insertions(+) create mode 100644 Cifs/pod.yaml create mode 100644 Cifs/secret.yaml diff --git a/Cifs/pod.yaml b/Cifs/pod.yaml new file mode 100644 index 00000000..4ad333de --- /dev/null +++ b/Cifs/pod.yaml @@ -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" diff --git a/Cifs/secret.yaml b/Cifs/secret.yaml new file mode 100644 index 00000000..350e8417 --- /dev/null +++ b/Cifs/secret.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Secret +metadata: + name: cifs-secret + namespace: default +type: fstab/cifs +data: + username: 'VGlubw==' + password: 'UmV5MTE3Ng=='