miniflux.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ---
  2. apiVersion: v1
  3. kind: Namespace
  4. metadata:
  5. name: miniflux
  6. ---
  7. apiVersion: apps/v1
  8. kind: Deployment
  9. metadata:
  10. name: miniflux
  11. namespace: miniflux
  12. spec:
  13. strategy:
  14. type: Recreate
  15. selector:
  16. matchLabels:
  17. app: miniflux
  18. replicas: 1
  19. template:
  20. metadata:
  21. labels:
  22. app: miniflux
  23. spec:
  24. containers:
  25. - name: miniflux
  26. image: miniflux/miniflux:2.1.1
  27. ports:
  28. - containerPort: 8080
  29. name: http-web-svc
  30. envFrom:
  31. - secretRef:
  32. name: miniflux-db-secret
  33. env:
  34. - name: RUN_MIGRATIONS
  35. value: "1"
  36. - name: BASE_URL
  37. value: https://miniflux.jibby.org
  38. livenessProbe:
  39. exec:
  40. command: ["/usr/bin/miniflux", "-healthcheck", "auto"]
  41. initialDelaySeconds: 5
  42. periodSeconds: 5
  43. timeoutSeconds: 5
  44. ---
  45. apiVersion: v1
  46. kind: Service
  47. metadata:
  48. name: miniflux-service
  49. namespace: miniflux
  50. spec:
  51. selector:
  52. app: miniflux
  53. type: ClusterIP
  54. ports:
  55. - name: miniflux-web-port
  56. protocol: TCP
  57. port: 8080
  58. targetPort: http-web-svc
  59. ---
  60. apiVersion: traefik.containo.us/v1alpha1
  61. kind: IngressRoute
  62. metadata:
  63. name: miniflux
  64. namespace: miniflux
  65. spec:
  66. entryPoints:
  67. - websecure
  68. routes:
  69. - kind: Rule
  70. match: Host(`miniflux.jibby.org`)
  71. services:
  72. - kind: Service
  73. name: miniflux-service
  74. port: 8080