Compare commits

..

No commits in common. "912d58a3f49ffae54ee2cc001aadd2f5cd6af669" and "f9f67f5fe87b4f00e3d06fe810fb7cb7938b70a4" have entirely different histories.

6 changed files with 82 additions and 13 deletions

View File

@ -0,0 +1,36 @@
apiVersion : apps/v1
kind : Deployment
metadata :
name : vigimeteo-frontend
spec :
replicas : 2
selector :
matchLabels :
app : vigimeteo-frontend
template :
metadata :
labels :
app : vigimeteo-frontend
spec :
containers :
- name : vigimeteo-frontend
image : z1-frontend:latest
imagePullPolicy: IfNotPresent
ports :
- containerPort : 80
##env :
##- name : BACKEND_URL
## value : "http://vigimeteo-backend-service:8080"
---
apiVersion : v1
kind : Service
metadata :
name : vigimeteo-frontend-service
spec :
selector :
app : vigimeteo-frontend
ports :
- protocol : TCP
port : 80
targetPort : 80
type : LoadBalancer

View File

@ -1 +1 @@
export const API_BASE_URL = 'http://localhost:30888';
export const API_BASE_URL = 'http://localhost:8888';

View File

@ -1,3 +0,0 @@
#!/bin/bash
echo "Removed app."
docker compose down -v --rmi local

View File

@ -20,9 +20,9 @@ spec:
nodePort: 30888
---
# ─────────────────────────────────────────────────────────────────────────────
# Service Frontend NodePort (accessible via localhost:30500)
# ─────────────────────────────────────────────────────────────────────────────
apiVersion: v1
kind: Service
metadata:

35
z2/sql/backend.yaml Normal file
View File

@ -0,0 +1,35 @@
apiVersion
kind: Deployment
metadata:
name: vigimeteo-backend
spec:
replicas: 2
selector:
matchLabels:
app: vigimeteo-backend
template:
metadata:
labels:
app: vigimeteo-backend
spec:
containers:
- name: vigimeteo-backend
image: vigimeteo-backend:latest
ports:
- containerPort: 8080
env:
- name: DB_HOST
value: "vigimeteo-db"
---
apiVersion: v1
kind: Service
metadata:
name: vigimeteo-backend-service
spec:
selector:
app: vigimeteo-backend
ports:
- protocol: TCP
port: 8080
targetPort: 8080

View File

@ -1,5 +1,6 @@
# ─────────────────────────────────────────────────────────────────────────────
# PersistentVolume host-path volume for PostgreSQL data
# ─────────────────────────────────────────────────────────────────────────────
apiVersion: v1
kind: PersistentVolume
metadata:
@ -18,9 +19,9 @@ spec:
path: /home/cytech/vigimeteo-db-data
---
# ─────────────────────────────────────────────────────────────────────────────
# PersistentVolumeClaim claimed by the StatefulSet below
# ─────────────────────────────────────────────────────────────────────────────
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
@ -37,9 +38,9 @@ spec:
storage: 1Gi
---
# ─────────────────────────────────────────────────────────────────────────────
# StatefulSet single PostgreSQL replica
# ─────────────────────────────────────────────────────────────────────────────
apiVersion: apps/v1
kind: StatefulSet
metadata:
@ -95,9 +96,9 @@ spec:
name: vigimeteo-db-init
---
# ─────────────────────────────────────────────────────────────────────────────
# Headless Service required by the StatefulSet
# ─────────────────────────────────────────────────────────────────────────────
apiVersion: v1
kind: Service
metadata: