veza/k8s/load-balancing/services-with-lb.yaml
senke f9120c322b
Some checks failed
Backend API CI / test-unit (push) Failing after 0s
Backend API CI / test-integration (push) Failing after 0s
Frontend CI / test (push) Failing after 0s
Storybook Audit / Build & audit Storybook (push) Failing after 0s
Stream Server CI / test (push) Failing after 0s
release(v0.903): Vault - ORDER BY whitelist, rate limiter, VERSION sync, chat-server cleanup, Go 1.24
- ORDER BY dynamiques : whitelist explicite, fallback created_at DESC
- Login/register soumis au rate limiter global
- VERSION sync + check CI
- Nettoyage références veza-chat-server
- Go 1.24 partout (Dockerfile, workflows)
- TODO/FIXME/HACK convertis en issues ou résolus
2026-02-27 09:43:25 +01:00

72 lines
1.5 KiB
YAML

# Enhanced Services with Load Balancing Configuration
# These services include session affinity, health checks, and load balancing optimizations
---
# Backend API Service with Session Affinity
apiVersion: v1
kind: Service
metadata:
name: veza-backend-api
namespace: veza-production
labels:
app: veza-backend-api
annotations:
# Optional: For cloud load balancers
# service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
# service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
spec:
type: ClusterIP
# Session affinity for stateful operations (optional)
# Uncomment if needed for sticky sessions
# sessionAffinity: ClientIP
# sessionAffinityConfig:
# clientIP:
# timeoutSeconds: 3600 # 1 hour
ports:
- name: http
port: 8080
targetPort: 8080
protocol: TCP
selector:
app: veza-backend-api
---
# Frontend Service
apiVersion: v1
kind: Service
metadata:
name: veza-frontend
namespace: veza-production
labels:
app: veza-frontend
spec:
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
selector:
app: veza-frontend
---
# Stream Server Service
apiVersion: v1
kind: Service
metadata:
name: veza-stream-server
namespace: veza-production
labels:
app: veza-stream-server
spec:
type: ClusterIP
ports:
- name: http
port: 8080
targetPort: 8080
protocol: TCP
- name: ws
port: 8081
targetPort: 8081
protocol: TCP
selector:
app: veza-stream-server