-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathawesome-node.yml
69 lines (69 loc) · 1.46 KB
/
awesome-node.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apiVersion: v1
kind: Namespace
metadata:
name: awesome-node
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: awesome-node
namespace: awesome-node
labels:
app: awesome-node
spec:
replicas: 3
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
name: awesome-node
labels:
app: awesome-node
spec:
containers:
- name: awesome-node
image: bespinian/awesome-node:1.0.6
env:
- name: "HEALTHCHECK_LEAK_MEMORY"
value: "TRUE"
- name: "HEALTHCHECK_LEAK_INCREMENT_KB"
value: "50"
resources:
limits:
cpu: 100m
memory: 120M
requests:
cpu: 100m
memory: 120M
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /healthcheck
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
readinessProbe:
httpGet:
path: /healthcheck
port: 8080
initialDelaySeconds: 5
periodSeconds: 2
selector:
matchLabels:
app: awesome-node
---
apiVersion: v1
kind: Service
metadata:
namespace: awesome-node
name: awesome-node-svc
spec:
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: 8080
selector:
app: awesome-node