Compare commits
3 Commits
f9f67f5fe8
...
912d58a3f4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
912d58a3f4 | ||
|
|
6dfbb55dce | ||
|
|
f85cc24458 |
@ -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
|
|
||||||
@ -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
3
z2/remove-app.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "Removed app."
|
||||||
|
docker compose down -v --rmi local
|
||||||
@ -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:
|
||||||
|
|||||||
@ -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
|
|
||||||
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user