kubi files
This commit is contained in:
35
k8s/frontend-deployment.yaml
Normal file
35
k8s/frontend-deployment.yaml
Normal 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
22
k8s/frontend-ingress.yaml
Normal 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
13
k8s/frontend-service.yaml
Normal 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
|
||||
Reference in New Issue
Block a user