Files
gitops/clusters/kairos/samba-server/deployment.yaml

48 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: samba
labels:
app: samba
spec:
replicas: 1
selector:
matchLabels:
app: samba
strategy:
type: Recreate
template:
metadata:
labels:
app: samba
spec:
containers:
- name: samba
image: ghcr.io/servercontainers/samba:a3.22.0-s4.21.4-r4
ports:
- containerPort: 445
resources:
limits:
cpu: 1000m
memory: 2Gi
requests:
cpu: 10m
memory: 64Mi
volumeMounts:
- mountPath: /shares/data
name: share-path
envFrom:
- configMapRef:
name: samba-config
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
volumes:
- name: share-path
hostPath:
path: /usr/local/data
type: DirectoryOrCreate