36 lines
809 B
YAML
36 lines
809 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: alertmanager-webhook
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: alertmanager-webhook
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: alertmanager-webhook
|
||
|
spec:
|
||
|
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
|