try put user pass into secret this prob wont work
This commit is contained in:
parent
c52009020c
commit
fea4ae567c
1 changed files with 14 additions and 2 deletions
|
@ -62,11 +62,22 @@ spec:
|
|||
containers:
|
||||
- name: samba
|
||||
image: dperson/samba
|
||||
env:
|
||||
- name: SMB_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: smb-credentials
|
||||
key: username
|
||||
- name: SMB_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: smb-credentials
|
||||
key: password
|
||||
args:
|
||||
- -u
|
||||
- "user;password"
|
||||
- "$(SMB_USER);$(SMB_PASS)"
|
||||
- -s
|
||||
- "share;/mount;yes;no;no;user"
|
||||
- "share;/mount;yes;no;no;$(SMB_USER)"
|
||||
ports:
|
||||
- containerPort: 139
|
||||
- containerPort: 445
|
||||
|
@ -80,3 +91,4 @@ spec:
|
|||
- name: share
|
||||
persistentVolumeClaim:
|
||||
claimName: smb-share-pvc
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue