ntfy.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ---
  2. apiVersion: v1
  3. kind: Namespace
  4. metadata:
  5. name: ntfy
  6. ---
  7. apiVersion: v1
  8. kind: ConfigMap
  9. metadata:
  10. name: ntfy
  11. namespace: ntfy
  12. data:
  13. server.yml: |
  14. # Template: https://github.com/binwiederhier/ntfy/blob/main/server/server.yml
  15. base-url: https://ntfy.jibby.org
  16. auth-file: "/ntfy/user.db"
  17. auth-default-access: "deny-all"
  18. behind-proxy: true
  19. ---
  20. apiVersion: apps/v1
  21. kind: Deployment
  22. metadata:
  23. name: ntfy
  24. namespace: ntfy
  25. spec:
  26. selector:
  27. matchLabels:
  28. app: ntfy
  29. template:
  30. metadata:
  31. labels:
  32. app: ntfy
  33. spec:
  34. containers:
  35. - name: ntfy
  36. image: binwiederhier/ntfy:v2.7.0
  37. args: ["serve"]
  38. ports:
  39. - containerPort: 80
  40. name: http
  41. volumeMounts:
  42. - name: config
  43. mountPath: "/etc/ntfy"
  44. readOnly: true
  45. - name: data
  46. mountPath: "/ntfy"
  47. livenessProbe:
  48. httpGet:
  49. path: /v1/health
  50. port: 80
  51. failureThreshold: 10
  52. initialDelaySeconds: 30
  53. periodSeconds: 30
  54. timeoutSeconds: 10
  55. volumes:
  56. - name: config
  57. configMap:
  58. name: ntfy
  59. - name: data
  60. persistentVolumeClaim:
  61. claimName: ntfy-pvc
  62. ---
  63. # Basic service for port 80
  64. apiVersion: v1
  65. kind: Service
  66. metadata:
  67. name: ntfy-service
  68. namespace: ntfy
  69. spec:
  70. selector:
  71. app: ntfy
  72. ports:
  73. - port: 80
  74. targetPort: 80