delugevpn.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: delugevpn
  6. namespace: plex
  7. spec:
  8. strategy:
  9. type: Recreate
  10. selector:
  11. matchLabels:
  12. app: delugevpn
  13. replicas: 1
  14. template:
  15. metadata:
  16. labels:
  17. app: delugevpn
  18. annotations:
  19. backup.velero.io/backup-volumes-excludes: seedbox
  20. spec:
  21. containers:
  22. - name: delugevpn
  23. image: binhex/arch-delugevpn:2.1.1-6-05
  24. ports:
  25. - containerPort: 8112
  26. name: http-web-svc
  27. securityContext:
  28. privileged: true
  29. envFrom:
  30. - secretRef:
  31. name: delugevpn-secret
  32. volumeMounts:
  33. - mountPath: "/data"
  34. name: seedbox
  35. - mountPath: "/config"
  36. name: config
  37. resources:
  38. requests:
  39. memory: "0"
  40. limits:
  41. memory: "6Gi"
  42. volumes:
  43. - name: seedbox
  44. persistentVolumeClaim:
  45. claimName: seedbox-pvc
  46. - name: config
  47. persistentVolumeClaim:
  48. claimName: delugevpn-pvc
  49. ---
  50. apiVersion: v1
  51. kind: Service
  52. metadata:
  53. name: delugevpn-service
  54. namespace: plex
  55. spec:
  56. selector:
  57. app: delugevpn
  58. type: ClusterIP
  59. ports:
  60. - name: delugevpn-web-port
  61. protocol: TCP
  62. port: 8112
  63. targetPort: http-web-svc
  64. ---
  65. apiVersion: traefik.containo.us/v1alpha1
  66. kind: IngressRoute
  67. metadata:
  68. name: delugevpn
  69. namespace: plex
  70. spec:
  71. entryPoints:
  72. - websecure
  73. routes:
  74. - kind: Rule
  75. match: Host(`delugevpn.lan.jibby.org`)
  76. services:
  77. - kind: Service
  78. name: delugevpn-service
  79. port: 8112
  80. middlewares:
  81. - name: lanonly
  82. namespace: kube-system