smarketing-manifest/smarketing/deployments/member-deployment.yaml
2025-06-13 02:22:58 +00:00

60 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: member
namespace: won-smarketing-ns
spec:
replicas: 2
selector:
matchLabels:
app: member
template:
metadata:
labels:
app: member
spec:
containers:
- name: member
image: wonacr.azurecr.io/smarketing/member:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: member-config
- secretRef:
name: member-secret
resources:
requests:
cpu: 256m
memory: 256Mi
limits:
cpu: 1024m
memory: 1024Mi
startupProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 10
livenessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
imagePullSecrets:
- name: acr-secret