SMTP settings and Grafana alerts on Nextcloud Talk
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
---
|
||||
# tasks file for webhookd
|
||||
- name: Create ConfigMap for Webhookd scripts
|
||||
k8s:
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: scripts
|
||||
namespace: grafana
|
||||
data:
|
||||
message-nextcloud-talk.sh: "{{ lookup('file', 'message-nextcloud-talk.sh') }}"
|
||||
|
||||
- name: Create a Deployment for Webhookd
|
||||
k8s:
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: webhookd
|
||||
namespace: grafana
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: webhookd
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: webhookd
|
||||
spec:
|
||||
containers:
|
||||
- name: webhookd
|
||||
image: ncarlier/webhookd
|
||||
volumeMounts:
|
||||
- name: scripts
|
||||
mountPath: /scripts
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: GRAFANA_ADMIN_PASSWORD
|
||||
value: "{{ grafana_admin_password }}"
|
||||
volumes:
|
||||
- name: scripts
|
||||
configMap:
|
||||
name: scripts
|
||||
defaultMode: 0777
|
||||
|
||||
- name: Expose Webhookd Deployment as a Service
|
||||
k8s:
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: webhookd
|
||||
namespace: grafana
|
||||
spec:
|
||||
selector:
|
||||
app: webhookd
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
name: http
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user