Added backend push notifications

This commit is contained in:
Florian 2025-10-17 16:47:26 +02:00
parent c990cdf317
commit fa93567d2e
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend-push-notifications
namespace: app-notifications
spec:
replicas: 1
selector:
matchLabels:
app: backend-push-notifications
template:
metadata:
labels:
app: backend-push-notifications
spec:
imagePullSecrets:
- name: ghcr-secret
containers:
- name: backend-push-notifications
image: ghcr.io/gansejunge/app-notifications-backend-push-notifications:1
ports:
- containerPort: 9000
name: metrics
env:
- name: BACKEND_PN_RMQ_HOST
value: "rabbitmq.app-notifications.svc.cluster.local"
- name: BACKEND_PN_DB_HOST
value: "mysql.app-notifications.svc.cluster.local"
volumeMounts:
- name: backend-push-notifications-secrets
mountPath: /etc/secrets
readOnly: true
volumes:
- name: backend-push-notifications-secrets
secret:
secretName: backend-push-notifications

View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: backend-push-notifications
namespace: app-notifications
spec:
selector:
app: backend-push-notifications
ports:
- protocol: TCP
port: 9000
targetPort: 9000
nodePort: 30904
name: prometheus-metrics
type: NodePort