apiVersion: apps/v1
kind: Deployment
metadata:
  name: pushgateway
  labels:
     app.kubernetes.io/name: pushgateway
  annotations:
    prometheus.io/port: "9091"
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: pushgateway
  template:
    metadata:
      labels:
        app.kubernetes.io/name: pushgateway
    spec:
      containers:
      - name: pushgateway
        image: quay.io/cybozu/pushgateway
        ports:
        - containerPort: 9091
        livenessProbe:
          httpGet:
            path: /-/healthy
            port: 9091
          initialDelaySeconds: 10
          timeoutSeconds: 10
        readinessProbe:
          httpGet:
            path: /-/ready
            port: 9091
          initialDelaySeconds: 10
          timeoutSeconds: 10
