mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
add ntfy
This commit is contained in:
3
charts/apps/ntfy/Chart.yaml
Normal file
3
charts/apps/ntfy/Chart.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
version: 1.0.0
|
||||||
|
name: ntfy
|
||||||
60
charts/apps/ntfy/templates/deployment.yaml
Normal file
60
charts/apps/ntfy/templates/deployment.yaml
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Release.Name }}"
|
||||||
|
spec:
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: "{{ .Release.Name }}"
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: "{{ .Release.Name }}"
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: "{{ .Release.Name }}"
|
||||||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
|
||||||
|
args: ["serve"]
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: http
|
||||||
|
readinessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: http
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: "{{ .Values.globals.timezone }}"
|
||||||
|
- name: NTFY_BASE_URL
|
||||||
|
value: "https://{{ .Values.subdomain }}.{{ .Values.globals.domain }}"
|
||||||
|
- name: NTFY_AUTH_FILE
|
||||||
|
value: /var/lib/ntfy/auth.db
|
||||||
|
- name: NTFY_AUTH_DEFAULT_ACCESS
|
||||||
|
value: deny-all
|
||||||
|
- name: NTFY_BEHIND_PROXY
|
||||||
|
value: 'true'
|
||||||
|
- name: NTFY_CACHE_FILE
|
||||||
|
value: /var/lib/ntfy/cache.db
|
||||||
|
- name: NTFY_ATTACHMENT_CACHE_DIR
|
||||||
|
value: /var/lib/ntfy/attachments
|
||||||
|
- name: NTFY_ENABLE_LOGIN
|
||||||
|
value: 'true'
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/ntfy
|
||||||
|
name: data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: "{{ .Release.Name }}-data"
|
||||||
11
charts/apps/ntfy/templates/external-http-service.yaml
Normal file
11
charts/apps/ntfy/templates/external-http-service.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: homelab.mortenolsen.pro/v1
|
||||||
|
kind: ExternalHttpService
|
||||||
|
metadata:
|
||||||
|
name: '{{ .Release.Name }}'
|
||||||
|
spec:
|
||||||
|
environment: '{{ .Values.globals.environment }}'
|
||||||
|
subdomain: '{{ .Values.subdomain }}'
|
||||||
|
destination:
|
||||||
|
host: '{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local'
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
11
charts/apps/ntfy/templates/http-service.yaml
Normal file
11
charts/apps/ntfy/templates/http-service.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: homelab.mortenolsen.pro/v1
|
||||||
|
kind: HttpService
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Release.Name }}"
|
||||||
|
spec:
|
||||||
|
environment: "{{ .Values.globals.environment }}"
|
||||||
|
subdomain: "{{ .Values.subdomain }}"
|
||||||
|
destination:
|
||||||
|
host: "{{ .Release.Name }}"
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
11
charts/apps/ntfy/templates/pvc.yaml
Normal file
11
charts/apps/ntfy/templates/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Release.Name }}-data"
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- "ReadWriteOnce"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: "1Gi"
|
||||||
|
storageClassName: "{{ .Values.globals.environment }}"
|
||||||
15
charts/apps/ntfy/templates/service.yaml
Normal file
15
charts/apps/ntfy/templates/service.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Release.Name }}"
|
||||||
|
labels:
|
||||||
|
app: "{{ .Release.Name }}"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
app: "{{ .Release.Name }}"
|
||||||
5
charts/apps/ntfy/values.yaml
Normal file
5
charts/apps/ntfy/values.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
image:
|
||||||
|
repository: binwiederhier/ntfy
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
subdomain: ntfy
|
||||||
@@ -171,3 +171,8 @@ releases:
|
|||||||
namespace: prod
|
namespace: prod
|
||||||
values:
|
values:
|
||||||
- values.yaml
|
- values.yaml
|
||||||
|
- name: ntfy
|
||||||
|
chart: charts/apps/ntfy
|
||||||
|
namespace: prod
|
||||||
|
values:
|
||||||
|
- values.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user