forked from benc-uk/kube-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata-api-deployment.yaml
46 lines (39 loc) · 938 Bytes
/
data-api-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
kind: Deployment
apiVersion: apps/v1
metadata:
name: data-api
spec:
replicas: 2
selector:
matchLabels:
app: data-api
template:
metadata:
labels:
app: data-api
spec:
containers:
- name: data-api-container
image: {ACR_NAME}.azurecr.io/smilr/data-api:stable
imagePullPolicy: Always
ports:
- containerPort: 4000
resources:
requests:
cpu: 50m
memory: 50Mi
limits:
cpu: 100m
memory: 100Mi
readinessProbe:
httpGet:
port: 4000
path: /api/health
initialDelaySeconds: 0
periodSeconds: 5
env:
- name: MONGO_CONNSTR
valueFrom:
secretKeyRef:
name: mongo-creds
key: connection-string