Added backend push notifications
This commit is contained in:
parent
c990cdf317
commit
fa93567d2e
36
backend-push-notifications/deployment.yaml
Normal file
36
backend-push-notifications/deployment.yaml
Normal 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
|
||||
15
backend-push-notifications/service.yaml
Normal file
15
backend-push-notifications/service.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user