kubernetes-guide/codeblock/home-network/samba.yaml

52 lines
1.1 KiB
YAML
Raw Normal View History

2024-03-08 10:14:18 +08:00
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: samba
name: samba
namespace: default
spec:
selector:
matchLabels:
app: samba
template:
metadata:
labels:
app: samba
spec:
terminationGracePeriodSeconds: 1
containers:
- image: docker.io/dperson/samba:latest
args:
2024-03-08 10:24:23 +08:00
- "-u"
- "roc;111111"
- "-s"
- "data;/data/;yes;no;yes;all;all;all"
- "-w"
- "WORKGROUP"
- "-g"
- "force user=roc"
- "-g"
- "guest account=roc"
- "-S"
2024-03-08 10:14:18 +08:00
imagePullPolicy: IfNotPresent
name: samba
securityContext:
privileged: true
volumeMounts:
2024-03-08 10:24:23 +08:00
- mountPath: /data
name: data
2024-03-08 10:14:18 +08:00
dnsPolicy: Default
hostNetwork: true
restartPolicy: Always
volumes:
2024-03-08 10:24:23 +08:00
- name: data
2024-03-08 10:14:18 +08:00
hostPath:
2024-03-08 10:24:23 +08:00
path: /data
2024-03-08 10:14:18 +08:00
type: DirectoryOrCreate
updateStrategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate