apiVersion: apps/v1
kind: Deployment
metadata:
  name: arista-service-discovery
spec:
  replicas: 1
  selector:
    matchLabels:
      app: arista-sd
      type: service-discovery
  template:
    metadata:
      labels:
        app: arista-sd
        type: service-discovery
    spec:
      containers:
      - name: arista-sd
        image: "{{ .Values.global.imageRegistry }}/{{ .Values.image }}:{{ .Values.tag }}"
        env:
        - name: APP_ENV
          value: "{{ .Values.app_env }}"
        - name: OS_PROM_CONFIGMAP_NAME
          value: "{{ .Values.global.arista_exporter.configmap_name }}"
        - name: region
          value: "{{ .Values.global.region }}"
