forked from justalever/band_api
/
deployment.yaml
47 lines (47 loc) · 1.05 KB
/
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
47
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: bands-api
process: web
name: bands-api-web
spec:
selector:
matchLabels:
app.kubernetes.io/name: bands-api
process: web
template:
metadata:
labels:
app.kubernetes.io/name: bands-api
process: web
spec:
containers:
- env:
- name: PORT
value: "3000"
envFrom:
- configMapRef:
name: bands-api
image: docker.io/geshan/band-api:latest
imagePullPolicy: IfNotPresent
name: bands-api-web
ports:
- containerPort: 3000
name: http
protocol: TCP
readinessProbe:
httpGet:
path: /health_check/healthcheck
port: 3000
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
resources:
limits:
cpu: "200m"
memory: "128Mi"
requests:
cpu: "150m"
memory: "128Mi"
restartPolicy: Always