K8s Base File Update
All checks were successful
Build and Push API / build-and-push (push) Successful in 7s
All checks were successful
Build and Push API / build-and-push (push) Successful in 7s
This commit is contained in:
42
k8s/api-deployment.yaml
Normal file
42
k8s/api-deployment.yaml
Normal 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
0
k8s/api-service.yaml
Normal file
Reference in New Issue
Block a user