---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/name: exporter
    app.kubernetes.io/part-of: nextcloud
    app.kubernetes.io/component: exporter
    app.kubernetes.io/version: 0.3.0
  name: exporter
  namespace: nextcloud
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: exporter
      app.kubernetes.io/part-of: nextcloud
      app.kubernetes.io/component: exporter
  replicas: 1
  template:
    metadata:
      labels:
        app.kubernetes.io/name: exporter
        app.kubernetes.io/part-of: nextcloud
        app.kubernetes.io/component: exporter
        app.kubernetes.io/version: 0.3.0
      annotations:
        checksum: "TBD"
    spec:
      containers:
      - image: xperimental/nextcloud-exporter:v0.3.0
        name: exporter
        env:
        - name: NEXTCLOUD_SERVER
          value: "http://nginx.nextcloud.svc"
        - name: NEXTCLOUD_TIMEOUT
          value: 15s
        envFrom:
          - secretRef:
              name: exporter
        ports:
        - containerPort: 9205
          name: metrics
        resources:
          requests:
            cpu: 1m
            memory: 13Mi
      restartPolicy: Always
      nodeSelector:
        kubernetes.io/arch: "amd64"
      tolerations:
      - key: "storage.infra"
        operator: "Equal"
        value: "true"
        effect: "NoSchedule"
