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 hostNetwork: true dnsPolicy: ClusterFirstWithHostNet securityContext: privileged: true capabilities: add: ["NET_ADMIN"] resources: limits: cpu: 1000m memory: 2Gi requests: cpu: 10m memory: 64Mi volumeMounts: - mountPath: /shares/data name: share-path envFrom: - configMapRef: name: samba-config volumes: - name: share-path hostPath: path: /usr/local/data type: DirectoryOrCreate