50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ai-service
|
|
namespace: ai-service
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ai-service
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ai-service
|
|
spec:
|
|
terminationGracePeriodSeconds: 20
|
|
containers:
|
|
- name: server
|
|
image: localhost:30300/admin/ai-service:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
envFrom:
|
|
- configMapRef:
|
|
name: ai-service-config
|
|
- secretRef:
|
|
name: ai-service-secrets
|
|
startupProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: 8080
|
|
periodSeconds: 5
|
|
failureThreshold: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: 8080
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8080
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 96Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 384Mi
|