Move of a deployment in the right file
This commit is contained in:
parent
8171d3b197
commit
f9f67f5fe8
@ -50,3 +50,31 @@ spec:
|
|||||||
- name: DB_PASSWORD
|
- name: DB_PASSWORD
|
||||||
value: "admin"
|
value: "admin"
|
||||||
|
|
||||||
|
---
|
||||||
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
# Deployment – React/Nginx Frontend (2 replicas)
|
||||||
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: vigimeteo-frontend
|
||||||
|
namespace: vigimeteo
|
||||||
|
labels:
|
||||||
|
app: vigimeteo-frontend
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: vigimeteo-frontend
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: vigimeteo-frontend
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: vigimeteo-frontend
|
||||||
|
image: vigimeteo-frontend:latest
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: http
|
||||||
|
|||||||
@ -1,54 +1,5 @@
|
|||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
# Deployment – React/Nginx Frontend (2 replicas)
|
# Service – Backend NodePort (accessible via localhost:30888)
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: vigimeteo-frontend
|
|
||||||
namespace: vigimeteo
|
|
||||||
labels:
|
|
||||||
app: vigimeteo-frontend
|
|
||||||
spec:
|
|
||||||
replicas: 2
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: vigimeteo-frontend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: vigimeteo-frontend
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: vigimeteo-frontend
|
|
||||||
image: vigimeteo-frontend:latest
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
name: http
|
|
||||||
### part bellow recommanded by ia for health check
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: 80
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 10
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: 80
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 15
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "50m"
|
|
||||||
memory: "64Mi"
|
|
||||||
limits:
|
|
||||||
cpu: "200m"
|
|
||||||
memory: "128Mi"
|
|
||||||
|
|
||||||
---
|
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
|
||||||
# Service – Backend ClusterIP (internal access only)
|
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@ -70,7 +21,7 @@ spec:
|
|||||||
|
|
||||||
---
|
---
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
# Service – Frontend NodePort (external access via <nodeIP>:30500)
|
# Service – Frontend NodePort (accessible via localhost:30500)
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user