apiVersion: apps/v1
kind: Deployment
metadata:
  name: infra-exporter
spec:
  replicas: 1
  selector:
    matchLabels:
      app: infra-exporter
  template:
    metadata:
      labels:
        app: infra-exporter
    spec:
      containers:
      - name: infra-exporter
        image: 385595570414.dkr.ecr.us-west-2.amazonaws.com/tidbcloud/infra-exporter:06724bd5f8a0d6102cd5d2a797ac803172414098
        args:
          - --infra-kubeconfig=/.kube/config
        ports:
          - containerPort: 8090
            name: metrics
            protocol: TCP
        volumeMounts:
          - name: kubeconfig
            mountPath: /.kube
            readOnly: true
        resources:
          requests:
            cpu: 50m
            memory: 50Mi
          limits:
            memory: 200Mi
      volumes:
        - name: kubeconfig
          secret:
            secretName: infra-exporter-infra-kubeconfig
