docs: cleanup stale mic-after-work refs in kubernetes manifests + docker/README.md
Some checks failed
CI/CD Lions Pipeline / Build + Push + Deploy (push) Failing after 9s
Some checks failed
CI/CD Lions Pipeline / Build + Push + Deploy (push) Failing after 9s
This commit is contained in:
@@ -44,7 +44,7 @@ L’application se connecte à PostgreSQL sur l’hôte (`host.docker.internal:5
|
||||
CREATE USER afterwork WITH PASSWORD 'changeme';
|
||||
CREATE DATABASE afterwork_db OWNER afterwork;
|
||||
```
|
||||
- Ou utiliser **vos** identifiants via un fichier **`.env` à la racine du projet** (mic-after-work-server-impl-quarkus-main) — Docker Compose le charge quand vous lancez depuis cette racine :
|
||||
- Ou utiliser **vos** identifiants via un fichier **`.env` à la racine du projet** (afterwork-server-impl-quarkus) — Docker Compose le charge quand vous lancez depuis cette racine :
|
||||
```bash
|
||||
# Contenu de .env à la racine du projet
|
||||
DB_USERNAME=monuser
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mic-after-work-server-impl-quarkus-main
|
||||
name: afterwork-server-impl-quarkus
|
||||
namespace: applications
|
||||
labels:
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
version: "1.0.0"
|
||||
environment: production
|
||||
component: application
|
||||
@@ -22,11 +22,11 @@ spec:
|
||||
maxUnavailable: 0
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
version: "1.0.0"
|
||||
component: application
|
||||
project: lions-infrastructure-2025
|
||||
@@ -45,8 +45,8 @@ spec:
|
||||
type: RuntimeDefault
|
||||
terminationGracePeriodSeconds: 30
|
||||
containers:
|
||||
- name: mic-after-work-server-impl-quarkus-main
|
||||
image: registry.lions.dev/lionsdev/mic-after-work-server-impl-quarkus-main:latest
|
||||
- name: afterwork-server-impl-quarkus
|
||||
image: registry.lions.dev/lionsdev/afterwork-server-impl-quarkus:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: mic-after-work-server-impl-quarkus-main-ingress
|
||||
name: afterwork-server-impl-quarkus-ingress
|
||||
namespace: applications
|
||||
labels:
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
annotations:
|
||||
# SSL/TLS
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
@@ -27,7 +27,7 @@ metadata:
|
||||
|
||||
# WebSocket support
|
||||
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
|
||||
nginx.ingress.kubernetes.io/websocket-services: "mic-after-work-server-impl-quarkus-main-service"
|
||||
nginx.ingress.kubernetes.io/websocket-services: "afterwork-server-impl-quarkus-service"
|
||||
|
||||
# Security headers and CORS
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
@@ -63,6 +63,6 @@ spec:
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: mic-after-work-server-impl-quarkus-main-service
|
||||
name: afterwork-server-impl-quarkus-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
@@ -18,13 +18,13 @@ metadata:
|
||||
name: afterwork-api-monitor
|
||||
namespace: monitoring
|
||||
labels:
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
release: prometheus
|
||||
project: lions-infrastructure-2025
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- applications
|
||||
@@ -45,7 +45,7 @@ metadata:
|
||||
name: afterwork-api-alerts
|
||||
namespace: monitoring
|
||||
labels:
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
release: prometheus
|
||||
project: lions-infrastructure-2025
|
||||
spec:
|
||||
@@ -68,12 +68,12 @@ spec:
|
||||
expr: |
|
||||
sum(rate(http_server_requests_seconds_count{
|
||||
kubernetes_namespace="applications",
|
||||
app="mic-after-work-server-impl-quarkus-main",
|
||||
app="afterwork-server-impl-quarkus",
|
||||
status=~"5.."
|
||||
}[5m])) /
|
||||
sum(rate(http_server_requests_seconds_count{
|
||||
kubernetes_namespace="applications",
|
||||
app="mic-after-work-server-impl-quarkus-main"
|
||||
app="afterwork-server-impl-quarkus"
|
||||
}[5m])) > 0.05
|
||||
for: 5m
|
||||
labels:
|
||||
@@ -88,7 +88,7 @@ spec:
|
||||
expr: |
|
||||
histogram_quantile(0.95, sum(rate(http_server_requests_seconds_bucket{
|
||||
kubernetes_namespace="applications",
|
||||
app="mic-after-work-server-impl-quarkus-main"
|
||||
app="afterwork-server-impl-quarkus"
|
||||
}[5m])) by (le)) > 2
|
||||
for: 5m
|
||||
labels:
|
||||
@@ -103,11 +103,11 @@ spec:
|
||||
expr: |
|
||||
sum(container_memory_working_set_bytes{
|
||||
namespace="applications",
|
||||
pod=~"mic-after-work-server-impl-quarkus-main.*"
|
||||
pod=~"afterwork-server-impl-quarkus.*"
|
||||
}) /
|
||||
sum(container_spec_memory_limit_bytes{
|
||||
namespace="applications",
|
||||
pod=~"mic-after-work-server-impl-quarkus-main.*"
|
||||
pod=~"afterwork-server-impl-quarkus.*"
|
||||
}) > 0.85
|
||||
for: 5m
|
||||
labels:
|
||||
@@ -122,7 +122,7 @@ spec:
|
||||
expr: |
|
||||
increase(kube_pod_container_status_restarts_total{
|
||||
namespace="applications",
|
||||
pod=~"mic-after-work-server-impl-quarkus-main.*"
|
||||
pod=~"afterwork-server-impl-quarkus.*"
|
||||
}[1h]) > 3
|
||||
for: 5m
|
||||
labels:
|
||||
@@ -143,7 +143,7 @@ metadata:
|
||||
namespace: monitoring
|
||||
labels:
|
||||
grafana_dashboard: "1"
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
project: lions-infrastructure-2025
|
||||
data:
|
||||
afterwork-api-dashboard.json: |
|
||||
@@ -184,7 +184,7 @@ data:
|
||||
"options": {},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum(rate(http_server_requests_seconds_count{kubernetes_namespace=\"applications\",app=\"mic-after-work-server-impl-quarkus-main\"}[5m]))",
|
||||
"expr": "sum(rate(http_server_requests_seconds_count{kubernetes_namespace=\"applications\",app=\"afterwork-server-impl-quarkus\"}[5m]))",
|
||||
"legendFormat": "Requests/s",
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -210,12 +210,12 @@ data:
|
||||
"options": {},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "histogram_quantile(0.95, sum(rate(http_server_requests_seconds_bucket{kubernetes_namespace=\"applications\",app=\"mic-after-work-server-impl-quarkus-main\"}[5m])) by (le)) * 1000",
|
||||
"expr": "histogram_quantile(0.95, sum(rate(http_server_requests_seconds_bucket{kubernetes_namespace=\"applications\",app=\"afterwork-server-impl-quarkus\"}[5m])) by (le)) * 1000",
|
||||
"legendFormat": "p95 Latency",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "histogram_quantile(0.50, sum(rate(http_server_requests_seconds_bucket{kubernetes_namespace=\"applications\",app=\"mic-after-work-server-impl-quarkus-main\"}[5m])) by (le)) * 1000",
|
||||
"expr": "histogram_quantile(0.50, sum(rate(http_server_requests_seconds_bucket{kubernetes_namespace=\"applications\",app=\"afterwork-server-impl-quarkus\"}[5m])) by (le)) * 1000",
|
||||
"legendFormat": "p50 Latency",
|
||||
"refId": "B"
|
||||
}
|
||||
@@ -241,7 +241,7 @@ data:
|
||||
"options": {},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum(rate(http_server_requests_seconds_count{kubernetes_namespace=\"applications\",app=\"mic-after-work-server-impl-quarkus-main\",status=~\"5..\"}[5m])) / sum(rate(http_server_requests_seconds_count{kubernetes_namespace=\"applications\",app=\"mic-after-work-server-impl-quarkus-main\"}[5m])) * 100",
|
||||
"expr": "sum(rate(http_server_requests_seconds_count{kubernetes_namespace=\"applications\",app=\"afterwork-server-impl-quarkus\",status=~\"5..\"}[5m])) / sum(rate(http_server_requests_seconds_count{kubernetes_namespace=\"applications\",app=\"afterwork-server-impl-quarkus\"}[5m])) * 100",
|
||||
"legendFormat": "Error Rate %",
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -267,12 +267,12 @@ data:
|
||||
"options": {},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum(container_memory_working_set_bytes{namespace=\"applications\",pod=~\"mic-after-work-server-impl-quarkus-main.*\"})",
|
||||
"expr": "sum(container_memory_working_set_bytes{namespace=\"applications\",pod=~\"afterwork-server-impl-quarkus.*\"})",
|
||||
"legendFormat": "Memory Used",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "sum(container_spec_memory_limit_bytes{namespace=\"applications\",pod=~\"mic-after-work-server-impl-quarkus-main.*\"})",
|
||||
"expr": "sum(container_spec_memory_limit_bytes{namespace=\"applications\",pod=~\"afterwork-server-impl-quarkus.*\"})",
|
||||
"legendFormat": "Memory Limit",
|
||||
"refId": "B"
|
||||
}
|
||||
@@ -298,7 +298,7 @@ data:
|
||||
"options": {},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"applications\",pod=~\"mic-after-work-server-impl-quarkus-main.*\"}[5m])) * 1000",
|
||||
"expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"applications\",pod=~\"afterwork-server-impl-quarkus.*\"}[5m])) * 1000",
|
||||
"legendFormat": "CPU Usage (millicores)",
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -379,7 +379,7 @@ data:
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "increase(kube_pod_container_status_restarts_total{namespace=\"applications\",pod=~\"mic-after-work-server-impl-quarkus-main.*\"}[1h])",
|
||||
"expr": "increase(kube_pod_container_status_restarts_total{namespace=\"applications\",pod=~\"afterwork-server-impl-quarkus.*\"}[1h])",
|
||||
"legendFormat": "Restarts (1h)",
|
||||
"refId": "A"
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ data:
|
||||
# ==============================================================================
|
||||
DB_HOST: "postgresql-service.postgresql.svc.cluster.local"
|
||||
DB_PORT: "5432"
|
||||
DB_NAME: "mic-after-work-server-impl-quarkus-main"
|
||||
DB_NAME: "afterwork-server-impl-quarkus"
|
||||
DB_USERNAME: "lionsuser"
|
||||
|
||||
# ==============================================================================
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mic-after-work-server-impl-quarkus-main-service
|
||||
name: afterwork-server-impl-quarkus-service
|
||||
namespace: applications
|
||||
labels:
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
component: application
|
||||
project: lions-infrastructure-2025
|
||||
annotations:
|
||||
@@ -27,4 +27,4 @@ spec:
|
||||
protocol: TCP
|
||||
name: http-direct
|
||||
selector:
|
||||
app: mic-after-work-server-impl-quarkus-main
|
||||
app: afterwork-server-impl-quarkus
|
||||
|
||||
Reference in New Issue
Block a user