Add config map to configure samba
This commit is contained in:
55
clusters/kairos/samba/configmap.yaml
Normal file
55
clusters/kairos/samba/configmap.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: samba-config
|
||||
data:
|
||||
config.json: |
|
||||
{
|
||||
"samba-container-config": "v0",
|
||||
"configs": {
|
||||
"local": {
|
||||
"shares": [
|
||||
"share"
|
||||
],
|
||||
"globals": [
|
||||
"default"
|
||||
],
|
||||
"instance_name": "SAMBA"
|
||||
}
|
||||
},
|
||||
"shares": {
|
||||
"share": {
|
||||
"options": {
|
||||
"path": "/share",
|
||||
"valid users": "user"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "user",
|
||||
"create mask": "0775",
|
||||
"directory mask": "0755",
|
||||
}
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"all_entries": [
|
||||
{
|
||||
"name": "user",
|
||||
"password": "public"
|
||||
}
|
||||
]
|
||||
},
|
||||
"_footer": 1
|
||||
}
|
||||
@@ -29,6 +29,9 @@ spec:
|
||||
ports:
|
||||
- containerPort: 445
|
||||
hostPort: 445
|
||||
env:
|
||||
- name: SAMBACC_CONFIG
|
||||
value: /etc/samba-container/config.json
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1000m
|
||||
@@ -44,3 +47,9 @@ spec:
|
||||
hostPath:
|
||||
path: /usr/local/data
|
||||
type: Directory
|
||||
- name: samba-config
|
||||
configMap:
|
||||
name: samba-config
|
||||
items:
|
||||
- key: config.json
|
||||
path: /etc/samba-container/config.json
|
||||
Reference in New Issue
Block a user