-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeploy.yaml
42 lines (42 loc) · 884 Bytes
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: techtrends
name: techtrends
namespace: sandbox
spec:
replicas: 1
selector:
matchLabels:
app: techtrends
template:
metadata:
labels:
app: techtrends
spec:
containers:
- image: diogosilverio/techtrends
imagePullPolicy: IfNotPresent
name: techtrends
ports:
- containerPort: 3111
livenessProbe:
httpGet:
path: /healthz
port: 3111
initialDelaySeconds: 5
periodSeconds: 5
readinessProbe:
httpGet:
path: /healthz
port: 3111
initialDelaySeconds: 5
periodSeconds: 5
resources:
requests:
cpu: 250m
memory: 64Mi
limits:
cpu: 500m
memory: 128Mi