samba-deployment.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. labels:
  5. app.kubernetes.io/name: samba
  6. app.kubernetes.io/part-of: samba
  7. name: samba
  8. spec:
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: samba
  12. app.kubernetes.io/part-of: samba
  13. strategy:
  14. type: Recreate
  15. template:
  16. metadata:
  17. labels:
  18. app.kubernetes.io/name: samba
  19. app.kubernetes.io/part-of: samba
  20. spec:
  21. containers:
  22. - args:
  23. - -u
  24. - vagrant;vagrant
  25. - -s
  26. - media;/share;yes;no;no;workgroup
  27. - -s
  28. - public;/public;yes;yes;yes
  29. - -g
  30. - acl allow execute always = True
  31. env:
  32. - name: GROUPID
  33. value: "998"
  34. - name: TZ
  35. value: Europe/Moscow
  36. - name: USERID
  37. value: "1000"
  38. - name: WORKGROUP
  39. value: workgroup
  40. image: dperson/samba@sha256:66088b78a19810dd1457a8f39340e95e663c728083efa5fe7dc0d40b2478e869
  41. name: samba
  42. ports:
  43. - containerPort: 139
  44. - containerPort: 445
  45. resources:
  46. limits:
  47. cpu: 100m
  48. memory: 300Mi
  49. requests:
  50. cpu: 10m
  51. memory: 100Mi
  52. volumeMounts:
  53. - mountPath: /public
  54. name: samba-claim0
  55. volumes:
  56. - name: samba-claim0
  57. hostPath:
  58. path: /srv/lib
  59. type: Directory