ntfy-bridge/k8s/bridge.yaml

70 lines
1.2 KiB
YAML
Raw Normal View History

2023-09-03 10:30:33 +00:00
---
apiVersion: v1
kind: ConfigMap
metadata:
name: bridge-config
data:
config.scfg: |
http-address 0.0.0.0:8080
2023-09-03 14:56:16 +00:00
log-level debug
2023-09-03 10:30:33 +00:00
log-format text
ntfy {
2023-09-03 12:58:00 +00:00
server http://ntfy-http:80
2023-09-03 10:30:33 +00:00
}
handler "/flux" {
type "flux"
topic "flux"
}
2023-09-03 14:46:02 +00:00
handler "/forgejo" {
type "discord_embed"
topic "forgejo"
}
2023-09-11 16:54:24 +00:00
handler "/alerts" {
type "alertmanager"
topic "infra"
}
2023-09-03 10:30:33 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bridge
spec:
selector:
matchLabels:
app: bridge
template:
metadata:
labels:
app: bridge
spec:
containers:
- name: bridge
image: forge.babariviere.com/babariviere/ntfy-bridge:latest
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /etc/ntfy-bridge/config.scfg
subPath: config.scfg
name: config-volume
volumes:
- name: config-volume
configMap:
name: bridge-config
---
apiVersion: v1
kind: Service
metadata:
name: bridge
spec:
ports:
- port: 8080
name: http
2023-09-03 12:58:00 +00:00
type: ClusterIP
2023-09-03 10:30:33 +00:00
selector:
app: bridge