Preferred the other version...
This commit is contained in:
@@ -3,57 +3,17 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: samba-config
|
name: samba-config
|
||||||
data:
|
data:
|
||||||
config.json: |
|
FAIL_FAST: "true"
|
||||||
{
|
SAMBA_CONF_LOG_LEVEL: "2"
|
||||||
"samba-container-config": "v0",
|
ACCOUNT_samba: samba
|
||||||
"configs": {
|
GROUPS_samba: samba
|
||||||
"local": {
|
SAMBA_GLOBAL_STANZA: "map to guest = Bad User;guest account = samba;wins support = yes;load printers = no;"
|
||||||
"shares": [
|
SAMBA_VOLUME_CONFIG_share: |
|
||||||
"share"
|
[share]
|
||||||
],
|
path = /shares/data
|
||||||
"globals": [
|
comment = K3s share data
|
||||||
"default"
|
browseable = yes
|
||||||
],
|
writable = yes
|
||||||
"instance_name": "SAMBA"
|
read only = no
|
||||||
}
|
printable = no
|
||||||
},
|
public = yes
|
||||||
"shares": {
|
|
||||||
"share": {
|
|
||||||
"options": {
|
|
||||||
"path": "/share",
|
|
||||||
"valid users": "sambauser",
|
|
||||||
"writeable": "yes",
|
|
||||||
"guest ok": "yes",
|
|
||||||
"guest only": "yes"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"globals": {
|
|
||||||
"default": {
|
|
||||||
"options": {
|
|
||||||
"security": "user",
|
|
||||||
"server min protocol": "SMB2",
|
|
||||||
"load printers": "no",
|
|
||||||
"printing": "bsd",
|
|
||||||
"printcap name": "/dev/null",
|
|
||||||
"disable spoolss": "yes",
|
|
||||||
"guest ok": "yes",
|
|
||||||
"browsable": "yes",
|
|
||||||
"writable": "yes",
|
|
||||||
"guest account": "sambauser",
|
|
||||||
"create mask": "0775",
|
|
||||||
"directory mask": "0755",
|
|
||||||
"map to guest": "bad user"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"users": {
|
|
||||||
"all_entries": [
|
|
||||||
{
|
|
||||||
"name": "sambauser",
|
|
||||||
"password": "samba"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"_footer": 1
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -18,15 +18,9 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: samba
|
- name: samba
|
||||||
image: quay.io/samba.org/samba-server:latest
|
image: ghcr.io/servercontainers/samba:a3.22.0-s4.21.4-r4
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 445
|
- containerPort: 445
|
||||||
hostPort: 445
|
|
||||||
env:
|
|
||||||
- name: SAMBACC_CONFIG
|
|
||||||
value: /etc/samba-container/config.json
|
|
||||||
- name: SAMBA_CONTAINER_ID
|
|
||||||
value: local
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 1000m
|
cpu: 1000m
|
||||||
@@ -35,20 +29,19 @@ spec:
|
|||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /share
|
- mountPath: /shares/data
|
||||||
name: local-path
|
name: share-path
|
||||||
- mountPath: /etc/samba-container
|
envFrom:
|
||||||
name: samba-config
|
- configMapRef:
|
||||||
|
name: samba-config
|
||||||
|
hostNetwork: true
|
||||||
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
capabilities:
|
capabilities:
|
||||||
add: ["NET_ADMIN"]
|
add: ["NET_ADMIN"]
|
||||||
hostNetwork: true
|
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: local-path
|
- name: share-path
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /usr/local/data
|
path: /usr/local/data
|
||||||
- name: samba-config
|
type: DirectoryOrCreate
|
||||||
configMap:
|
|
||||||
name: samba-config
|
|
||||||
|
|||||||
Reference in New Issue
Block a user