---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: alertmanager-statuspage
spec:
  selector:
    matchLabels:
      app: alertmanager-statuspage
  template:
    metadata:
      labels:
        app: alertmanager-statuspage
    spec:
      containers:
        - name: alertmanager-statuspage
          image: intrand/alertmanager-statuspage:2021.04.10.01
          imagePullPolicy: IfNotPresent

          env:
            - name: token
              valueFrom:
                secretKeyRef:
                  name: statuspageio
                  key: token
            - name: listen_address
              value: "0.0.0.0:8080" # this is the default

          ports:
            - name: http
              containerPort: 8080

          resources:
            limits:
              cpu: 30m
              memory: 20Mi
            requests:
              cpu: 5m
              memory: 5Mi
