kubi files

This commit is contained in:
2025-11-26 18:01:05 +01:00
parent a45ace4211
commit f395fb626a
3 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: telefonkonyv-frontend
namespace: szakdolgozat
spec:
replicas: 1
selector:
matchLabels:
app: telefonkonyv-frontend
template:
metadata:
labels:
app: telefonkonyv-frontend
spec:
imagePullSecrets:
- name: gitea-regcred
containers:
- name: frontend
image: git.petyi.eu/szakdolgozat/frontend:latest
imagePullPolicy: Always
ports:
- containerPort: 80
env:
- name: CHOKIDAR_USEPOLLING
value: "true"
- name: VITE_BACKEND_API_HOST
value: "http://telefonkonyv-api"
- name: VITE_BACKEND_API_PORT
value: "3000"

22
k8s/frontend-ingress.yaml Normal file
View File

@@ -0,0 +1,22 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: telefonkonyv-frontend-ingress
namespace: szakdolgozat
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
spec:
rules:
- host: app.k8s.petyi.eu
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: telefonkonyv-frontend
port:
number: 80

13
k8s/frontend-service.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: telefonkonyv-frontend
namespace: szakdolgozat
spec:
type: NodePort
selector:
app: telefonkonyv-frontend
ports:
- port: 80
targetPort: 80
nodePort: 30573