K8s Base File Update
All checks were successful
Build and Push API / build-and-push (push) Successful in 7s

This commit is contained in:
2025-11-24 22:01:56 +01:00
parent 3b65900a2c
commit efd3f91615
2 changed files with 42 additions and 0 deletions

42
k8s/api-deployment.yaml Normal file
View File

@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: telefonkonyv-api
namespace: szakdolgozat
spec:
replicas: 1
selector:
matchLabels:
app: telefonkonyv-api
template:
metadata:
labels:
app: telefonkonyv-api
spec:
imagePullSecrets:
- name: gitea-regcred
containers:
- name: api
image: git.petyi.eu/szakdolgozat/api:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
env:
- name: APP_PORT
value: "3000"
- name: DB_HOST
value: "telefonkonyv-db"
- name: DB_PORT
value: "3306"
- name: DB_NAME
value: "telefonkonyv"
- name: DB_USER
value: "appuser"
- name: DB_PASSWORD
value: "apppass"

0
k8s/api-service.yaml Normal file
View File