---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: alertmanager-discord
  namespace: monitoring
spec:
  selector:
    matchLabels:
      app: alertmanager-discord
  template:
    metadata:
      labels:
        app: alertmanager-discord
    spec:
      containers:
        - image: benjojo/alertmanager-discord
          imagePullPolicy: Always
          name: main
          ports:
            - containerPort: 9094
              name: http
          resources:
            limits:
              cpu: 20m
              memory: 40Mi
          env:
            - name: DISCORD_WEBHOOK
              valueFrom:
                secretKeyRef:
                  key: address
                  name: discord-webhook
