about summary refs log tree commit diff
path: root/bundles/smb/files/kube.yaml
blob: 3f0e074fe69919df7bc53d5da6dc7cd5c049bb99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: v1
kind: Pod
metadata:
  name: smb
  labels:
    traefik.enable: false
spec:
  restartPolicy: Never
  dnsPolicy: Default
  containers:
    - name: smb
      image: docker.io/dockurr/samba:4.20.2
      volumeMounts:
        - name: smb-config
          mountPath: /etc/samba
        - name: smb-data-scratch
          mountPath: /storage/scratch
        - name: smb-data-hayasui
          mountPath: /storage/hayasui
        # - name: smb-data-bigdump
        #   mountPath: /storage/bigdump
      resources:
        limits:
          cpu: 10m
          memory: 50Mi
  ports:
    - containerPort: 445
      hostPort: 445
      protocol: TCP
  volumes:
    - name: smb-config
      hostPath:
        path: /var/lib/smb/config
        type: DirectoryOrCreate
    - name: smb-data-scratch
      hostPath:
        path: /var/lib/smb/data
        type: DirectoryOrCreate
    - name: smb-data-hayasui
      hostPath:
        path: /media/hayasui
        type: Directory
    # - name: smb-data-bigdump
    #   hostPath:
    #     path: /media/bigdump
    #     type: Directory