tor-dply.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: tor
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. name: tor
  10. template:
  11. metadata:
  12. labels:
  13. name: tor
  14. spec:
  15. affinity:
  16. nodeAffinity:
  17. preferredDuringSchedulingIgnoredDuringExecution:
  18. - weight: 1
  19. preference:
  20. matchExpressions:
  21. - key: kubernetes.io/hostname
  22. operator: In
  23. values:
  24. - ter.dodges.it
  25. containers:
  26. - name: tor
  27. image: doudou34/tor-server
  28. env:
  29. - name: CONTACT_EMAIL
  30. value: "qdii@dodges.it"
  31. - name: TOR_NICKNAME
  32. value: "qdii"
  33. volumeMounts:
  34. - name: tor
  35. mountPath: /var/lib/tor/keys
  36. ports:
  37. - containerPort: 9001
  38. name: or
  39. - containerPort: 9030
  40. name: pt
  41. volumes:
  42. - name: tor
  43. persistentVolumeClaim:
  44. claimName: tor
  45. securityContext:
  46. fsGroup: 102