Ntfy deployment

This commit is contained in:
Gabriel Simmer 2022-10-26 12:27:35 +01:00
parent c503df773d
commit 50f3578a33
3 changed files with 74 additions and 0 deletions

View file

@ -14,6 +14,7 @@ spec:
- icr.gmem.ca
- hue.gmem.ca
- request-media.gmem.ca
- ntfy.gmem.ca
secretName: primary-tls
rules:
- host: pw.gmem.ca
@ -56,3 +57,13 @@ spec:
name: ombi
port:
number: 3579
- host: ntfy.gmem.ca
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ntfy
port:
number: 80

55
homelab/ntfy.yaml Normal file
View file

@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ntfy
spec:
selector:
matchLabels:
app: ntfy
template:
metadata:
labels:
app: ntfy
spec:
containers:
- name: ntfy
image: binwiederhier/ntfy
args: ["serve"]
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
name: http
volumeMounts:
- name: config
mountPath: "/etc/ntfy"
readOnly: true
volumes:
- name: config
configMap:
name: ntfy
---
apiVersion: v1
kind: Service
metadata:
name: ntfy
spec:
selector:
app: ntfy
ports:
- port: 80
targetPort: 80
---
apiVersion: v1
kind: ConfigMap
metadata:
name: ntfy
data:
server.yml: |
# Template: https://github.com/binwiederhier/ntfy/blob/main/server/server.yml
base-url: https://ntfy.gmem.ca
behind-proxy: false
upstream-base-url: "https://ntfy.sh"

View file

@ -2,6 +2,14 @@ resource "aws_route53_zone" "gmemca" {
name = "gmem.ca"
}
resource "aws_route53_record" "ntfy" {
zone_id = aws_route53_zone.gmemca.zone_id
name = "ntfy"
type = "A"
ttl = 300
records = ["100.120.232.77"]
}
resource "aws_route53_record" "api-by-becki" {
zone_id = aws_route53_zone.gmemca.zone_id
name = "abb"