69 lines
1.2 KiB
YAML
69 lines
1.2 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: bridge-config
|
|
data:
|
|
config.scfg: |
|
|
http-address 0.0.0.0:8080
|
|
log-level debug
|
|
log-format text
|
|
|
|
ntfy {
|
|
server http://ntfy-http:80
|
|
}
|
|
|
|
handler "/flux" {
|
|
type "flux"
|
|
topic "flux"
|
|
}
|
|
|
|
handler "/forgejo" {
|
|
type "discord_embed"
|
|
topic "forgejo"
|
|
}
|
|
|
|
handler "/alerts" {
|
|
type "alertmanager"
|
|
topic "infra"
|
|
}
|
|
---
|
|
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
|
|
type: ClusterIP
|
|
selector:
|
|
app: bridge
|