56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
# deployments/k8s/deployment.yaml
|
|
# Deployment shared-sqs — strategy Recreate (НЕ RollingUpdate: in-memory state, Trap #14)
|
|
# Created: 2026-04-09
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: shared-sqs
|
|
namespace: shared-sqs
|
|
labels:
|
|
app: shared-sqs
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: shared-sqs
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: shared-sqs
|
|
spec:
|
|
containers:
|
|
- name: shared-sqs
|
|
image: pearlharbor.registryk8s.services.ngcloud.ru/naeel/shared-sqs:v0.1.0
|
|
ports:
|
|
- containerPort: 4100
|
|
name: http
|
|
env:
|
|
- name: SHARED_SQS_ADMIN_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: shared-sqs-admin
|
|
key: token
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 4100
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 4100
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 5
|
|
imagePullSecrets:
|
|
- name: pearlharbor-registry-secret
|