diff --git a/backend-push-notifications/deployment.yaml b/backend-push-notifications/deployment.yaml new file mode 100644 index 0000000..5324247 --- /dev/null +++ b/backend-push-notifications/deployment.yaml @@ -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 diff --git a/backend-push-notifications/service.yaml b/backend-push-notifications/service.yaml new file mode 100644 index 0000000..9b9109d --- /dev/null +++ b/backend-push-notifications/service.yaml @@ -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