first commit

This commit is contained in:
2025-10-08 11:38:29 +02:00
commit 9816c281ad
12 changed files with 220 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend-api
namespace: app-notifications
spec:
replicas: 1
selector:
matchLabels:
app: backend-api
template:
metadata:
labels:
app: backend-api
spec:
containers:
- name: backend-api
image: notification_app.backend-api:v1
imagePullPolicy: Never
ports:
- containerPort: 8100
env:
- name: BACKEND_API_DB_HOST
value: "mysql.app-notifications.svc.cluster.local"
volumeMounts:
- name: backend-api-secrets
mountPath: /etc/secrets
readOnly: true
volumes:
- name: backend-api-secrets
secret:
secretName: backend-api

14
backend-api/service.yaml Normal file
View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: backend-api
namespace: app-notifications
spec:
selector:
app: backend-api
ports:
- protocol: TCP
port: 8100
targetPort: 8100
nodePort: 30100
type: NodePort