Fix CI: Add missing deployment manifests
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: tamagotchi-api
|
||||||
|
namespace: tamagotchi
|
||||||
|
labels:
|
||||||
|
app: tamagotchi-api
|
||||||
|
tier: backend
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: tamagotchi-api
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tamagotchi-api
|
||||||
|
tier: backend
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: api
|
||||||
|
image: git.khalilaliouich.com/khalil/tamagotchi-api:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
env:
|
||||||
|
- name: DB_HOST
|
||||||
|
value: postgres
|
||||||
|
- name: DB_PORT
|
||||||
|
value: "5432"
|
||||||
|
- name: DB_NAME
|
||||||
|
value: tamagotchi
|
||||||
|
- name: DB_USER
|
||||||
|
value: tamagotchi
|
||||||
|
- name: DB_PASSWORD
|
||||||
|
value: tamagotchi123
|
||||||
|
- name: DECAY_INTERVAL_MS
|
||||||
|
value: "15000"
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: tamagotchi-frontend
|
||||||
|
namespace: tamagotchi
|
||||||
|
labels:
|
||||||
|
app: tamagotchi-frontend
|
||||||
|
tier: frontend
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: tamagotchi-frontend
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tamagotchi-frontend
|
||||||
|
tier: frontend
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: frontend
|
||||||
|
image: git.khalilaliouich.com/khalil/tamagotchi-frontend:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
Reference in New Issue
Block a user