apiVersion: apps/v1
kind: Deployment
metadata:
  name: nexus-exporter
  namespace: "{{ secrets.monitor.namespace }}"
spec:
  replicas: 1
  selector:
    matchLabels: &labels
      k8s-app: nexus-exporter
  template:
    metadata:
      labels: *labels
    spec:
      containers:
        - name: exporter
          image: ocadotechnology/nexus-exporter:38acddf21db261cd63bb673c4c2193d8ea1cd3e6
          args:
            - --host
            - "https://artifacts.{{ secrets.dns.base }}"
            - --user
            - "{{ secrets.nexus.monitor.user }}"
            - --password
            - "{{ secrets.nexus.monitor.pass }}"

          ports:
            - name: http
              containerPort: 9184
          resources:
            limits:
              cpu: 100m
              memory: 250Mi