nxtgauge-gitops/apps/nxtgauge-backend/base/fitness-trainers-deployment.yaml

46 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nxtgauge-fitness-trainers
namespace: nxtgauge
labels:
app: nxtgauge-fitness-trainers
spec:
replicas: 1
selector:
matchLabels:
app: nxtgauge-fitness-trainers
template:
metadata:
labels:
app: nxtgauge-fitness-trainers
spec:
containers:
- name: fitness-trainers
image: ghcr.io/traceworks2023/nxtgauge-backend
imagePullPolicy: Always
ports:
- containerPort: 50062
name: grpc
env:
- name: APP
value: "professionals"
- name: PROFESSIONAL_SERVICE_CATEGORY
value: "fitness_trainer"
- name: PROFESSIONALS_PORT
value: "50062"
envFrom:
- configMapRef:
name: nxtgauge-backend-config
- secretRef:
name: nxtgauge-backend-secrets
readinessProbe:
tcpSocket:
port: 50062
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 50062
initialDelaySeconds: 15
periodSeconds: 20