alertmanager-bark-hook/k8s/base/deployment.yaml
2022-08-17 16:58:45 +08:00

39 lines
862 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: alertmanager-webhook
spec:
selector:
matchLabels:
app: alertmanager-webhook
template:
metadata:
labels:
app: alertmanager-webhook
spec:
imagePullSecrets:
- name: reg
volumes:
- name: config
configMap:
name: alertmanager-webhook
containers:
- name: alertmanager-webhook
volumeMounts:
- mountPath: /app/webhook/config
name: config
image: webhook
ports:
- containerPort: 8080
name: web
readinessProbe:
httpGet:
port: web
path: /health
livenessProbe:
httpGet:
port: web
path: /health
initialDelaySeconds: 10