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