nxtgauge-gitops/apps/nxtgauge-backend-rust/base/leads-deployment.yaml
Tracewebstudio Dev 7f84a4cdb3 feat(k8s): add jobs and leads services
- Add jobs service (port 9103) deployment and service
- Add leads service (port 9118) deployment and service
- Update configmap with JOBS_SERVICE_URL and LEADS_SERVICE_URL
- Update kustomization.yaml to include new resources
2026-04-12 22:04:00 +02:00

55 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nxtgauge-rust-leads
namespace: nxtgauge
labels:
app: nxtgauge-rust-leads
spec:
replicas: 1
selector:
matchLabels:
app: nxtgauge-rust-leads
template:
metadata:
labels:
app: nxtgauge-rust-leads
spec:
containers:
- name: leads
image: registry.nxtgauge.com:5000/nxtgauge-rust-leads
imagePullPolicy: Always
ports:
- containerPort: 9118
name: http
envFrom:
- configMapRef:
name: nxtgauge-backend-rust-config
- secretRef:
name: nxtgauge-backend-rust-secrets
env:
- name: PORT
value: "9118"
readinessProbe:
httpGet:
path: /health
port: 9118
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
livenessProbe:
httpGet:
path: /health
port: 9118
initialDelaySeconds: 20
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 5
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 500m
memory: 256Mi