-
Notifications
You must be signed in to change notification settings - Fork 69
/
article-rpc.yaml
47 lines (47 loc) · 1019 Bytes
/
article-rpc.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:
name: article-rpc
namespace: beyond
labels:
app: article-rpc
spec:
replicas: 3
revisionHistoryLimit: 5
selector:
matchLabels:
app: article-rpc
template:
metadata:
labels:
app: article-rpc
spec:
containers:
- name: article-rpc
image: article-rpc:v1.0.0
ports:
- containerPort: 9090
readinessProbe:
tcpSocket:
port: 9090
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 9090
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: 200m
memory: 256Mi
volumeMounts:
- name: timezone
mountPath: /etc/localtime
volumes:
- name: timezone
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai