dingding.yaml
[root@xx prometheus-rule]# cat dingding.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: webhook-dingtalk
name: webhook-dingtalk
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
app: webhook-dingtalk
template:
metadata:
labels:
app: webhook-dingtalk
spec:
containers:
- image: timonwong/prometheus-webhook-dingtalk:latest
name: webhook-dingtalk
args:
- --ding.profile=webhook1=https://oapi.dingtalk.com/robot/send?access_token=8fa4c053f5fe4184eaa01d14ccc200b6b414a1884earceaeewsx3
#上面创建的钉钉机器人hook
ports:
- containerPort: 8060
protocol: TCP
resources:
requests:
cpu: 100m
memory: 10