Compare commits

..

3 Commits

Author SHA1 Message Date
Charles Mendiburu
912d58a3f4 Adding remove file to delete images 2026-05-08 15:09:15 +02:00
Charles Mendiburu
6dfbb55dce Deleting and modifying files 2026-05-08 15:08:13 +02:00
Charles Mendiburu
f85cc24458 Moving code in the right file 2026-05-08 15:07:18 +02:00
6 changed files with 13 additions and 82 deletions

View File

@ -1,36 +0,0 @@
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:8888'; export const API_BASE_URL = 'http://localhost:30888';

3
z2/remove-app.sh Normal file
View File

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

View File

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

View File

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