52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: attendant
|
|
namespace: cloud-services
|
|
labels:
|
|
app: attendant
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: attendant
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: attendant
|
|
spec:
|
|
containers:
|
|
- name: attendant
|
|
image: localhost:32000/attendant:v1
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8077
|
|
name: http
|
|
- containerPort: 11011
|
|
name: health
|
|
envFrom:
|
|
- configMapRef:
|
|
name: cloud-common-config
|
|
- secretRef:
|
|
name: cloud-db-credentials
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
memory: 512Mi
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /liveness
|
|
port: 11011
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readiness
|
|
port: 11011
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|