This repository was archived by the owner on Mar 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathk8s.yaml
More file actions
76 lines (76 loc) · 1.28 KB
/
Copy pathk8s.yaml
File metadata and controls
76 lines (76 loc) · 1.28 KB
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
70
71
72
73
74
75
76
apiVersion: v1
kind: Service
metadata:
name: critical-crawler
labels:
app: critical-crawler
spec:
type: LoadBalancer
ports:
- port: 3000
selector:
app: critical-crawler
---
apiVersion: v1
kind: Service
metadata:
name: redis
labels:
app: redis
spec:
type: NodePort
ports:
- port: 6379
selector:
app: redis
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: critical-crawler
spec:
replicas: 1
selector:
matchLabels:
app: critical-crawler
template:
metadata:
labels:
app: critical-crawler
spec:
containers:
- name: critical-crawler
image: zkchn/critical-css-crawler:0.3.0
ports:
- containerPort: 3000
env:
- name: REDIS
value: //redis:6379
livenessProbe:
httpGet:
path: /healthz
port: 3000
readinessProbe:
httpGet:
path: /healthz
port: 3000
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: redis:5-alpine
ports:
- containerPort: 6379