deployment.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: tor-bridges
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: tor-bridges
  9. app.kubernetes.io/part-of: tor
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: tor-bridges
  14. app.kubernetes.io/part-of: tor
  15. spec:
  16. containers:
  17. - image: harbor.home.wugi.info/library/tor-bridges
  18. name: tor-bridges
  19. ports:
  20. - containerPort: 8080
  21. name: http
  22. protocol: TCP
  23. env:
  24. - name: TOR_BRIDGES_HTTP_PORT
  25. value: "8080"
  26. - name: TOR_BRIDGES_EMAIL_USERNAME
  27. valueFrom:
  28. secretKeyRef:
  29. name: email
  30. key: username
  31. - name: TOR_BRIDGES_EMAIL_PASSWORD
  32. valueFrom:
  33. secretKeyRef:
  34. name: email
  35. key: password
  36. resources:
  37. limits:
  38. cpu: 2000m
  39. memory: 1024Mi
  40. requests:
  41. cpu: 1000m
  42. memory: 512Mi