apiVersion: apps/v1
kind: Deployment
metadata:
  name: alertmanager-to-github
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: alertmanager-to-github
  template:
    metadata:
      labels:
        app.kubernetes.io/name: alertmanager-to-github
    spec:
      containers:
      - name: alertmanager-to-github
        image: quay.io/acm-sre/alertmanager-to-github@sha256:7fc1fdc63b8e7e69119ee8e1360175e7dc17704798b0281c188d87222329f390
        resources:
          limits:
            cpu: 100m
            memory: 100Mi
          requests:
            cpu: 50m
            memory: 50Mi
        imagePullPolicy: Always
        args:
        - start
        - --body-template-file=/conf/body.tmpl
        - --title-template-file=/conf/title.tmpl
        env:
        - name: ATG_ALERT_BLOCKLIST
          value: /conf/alert-blocklist.yaml
        - name: ATG_OWNER_CONF
          value: /conf/owner-conf.yaml
        - name: ATG_LISTEN
          value: ':8080'
        - name: ATG_GITHUB_TOKEN
          valueFrom:
            secretKeyRef:
              name: alertmanager-to-github
              key: ATG_GITHUB_TOKEN
        volumeMounts:
        - name: config
          mountPath: /conf/
          readOnly: true
      volumes:
      - name: config
        configMap:
          name: alertmanager-to-github
