mirror of
https://github.com/Traceworks2023/nxtgauge-gitops.git
synced 2026-06-11 14:00:10 +00:00
16 of 20 rust services had no PORT env var set; their main.rs calls
std::env::var('PORT').expect('PORT must be a valid u16') which panicked
on startup. This commit adds env.PORT matching the existing containerPort
for each service. Service ports: gateway=9100 users=9101 companies=9102
jobs=9103 job_seekers=9104 customers=9105 employees=9106 photographers=9107
tutors=9108 makeup_artists=9109 developers=9110 video_editors=9111
graphic_designers=9112 social_media_managers=9113 fitness_trainers=9114
catering_services=9115 payments=9116 ugc_content_creators=9117 leads=9118
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nxtgauge-rust-job-seekers
|
|
labels:
|
|
app: nxtgauge-rust-job-seekers
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: nxtgauge-rust-job-seekers
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nxtgauge-rust-job-seekers
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
containers:
|
|
- name: job-seekers
|
|
image: registry.nxtgauge.com/nxtgauge-rust-job-seekers:e6d85ffc8367885050b9434494f291724cc523c0
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 9104
|
|
name: http
|
|
envFrom:
|
|
- configMapRef:
|
|
name: nxtgauge-backend-rust-config
|
|
- secretRef:
|
|
name: nxtgauge-backend-rust-secrets
|
|
env:
|
|
- name: PORT
|
|
value: "9104"
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 9104
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 9104
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 20
|
|
timeoutSeconds: 3
|
|
failureThreshold: 5
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi
|