-
Notifications
You must be signed in to change notification settings - Fork 0
/
webhook-wechat.yaml
executable file
·84 lines (83 loc) · 1.95 KB
/
webhook-wechat.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
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
77
78
79
80
81
82
83
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: webhook-wechat
name: webhook-wechat
spec:
selector:
matchLabels:
app: webhook-wechat
template:
metadata:
labels:
app: webhook-wechat
spec:
containers:
- env:
- name: CustomIRoomNameJson
value: '{"ptc-ywd-pro-hbali":"云文档","ptc-yw-pro-hbali":"运维服务部报警接收群","NullClusterName":"运维服务部报警接收群"}'
image: registry.cn-beijing.aliyuncs.com/glodon-common/webhook-wechat:v8.1
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 80
timeoutSeconds: 5
name: webhook-wechat
ports:
- containerPort: 80
name: webhook-wechat
protocol: TCP
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 8088
timeoutSeconds: 5
resources:
limits:
memory: 1000Mi
requests:
memory: 100Mi
volumeMounts:
- mountPath: /etc/localtime
name: timezone
- mountPath: /webhook-wechat/store
name: webchatstore
restartPolicy: Always
volumes:
- name: timezone
hostPath:
path: /etc/localtime
volumeClaimTemplates:
- metadata:
name: webchatstore
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
storageClassName: alicloud-disk-ssd-bj
---
apiVersion: v1
kind: Service
metadata:
labels:
app: webhook-wechat
name: wechat-svc
spec:
ports:
- nodePort: 30259
port: 8088
protocol: TCP
targetPort: webhook-wechat
selector:
app: webhook-wechat
type: NodePort