apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
  labels:
    application: kube-metrics-adapter
  name: kube-metrics-adapter
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      application: kube-metrics-adapter
  template:
    metadata:
      annotations:
        iam.amazonaws.com/role: {{ .LocalID}}-kube-metrics-adapter
      labels:
        application: kube-metrics-adapter
    spec:
      containers:
      - args:
        - --prometheus-server=http://prometheus.kube-system.svc.cluster.local
        - --skipper-ingress-metrics
        - --aws-external-metrics
        env:
        - name: AWS_REGION
          value: eu-central-1
        image: registry.opensource.zalan.do/teapot/kube-metrics-adapter:master-3
        imagePullPolicy: Always
        name: kube-metrics-adapter
        resources:
          limits:
            memory: 100Mi
          requests:
            cpu: 100m
            memory: 100Mi

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
  labels:
    application: kube-metrics-adapter
  name: kube-metrics-adapter
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      application: kube-metrics-adapter
  template:
    metadata:
      annotations:
        iam.amazonaws.com/role: {{ .LocalID}}-kube-metrics-adapter
      labels:
        application: kube-metrics-adapter
    spec:
      serviceAccountName: system
      containers:
      - args:
        - --prometheus-server=http://prometheus.kube-system.svc.cluster.local
        - --skipper-ingress-metrics
        - --aws-external-metrics
        env:
        - name: AWS_REGION
          value: eu-central-1
        image: registry.opensource.zalan.do/teapot/kube-metrics-adapter:master-3
        imagePullPolicy: Always
        name: kube-metrics-adapter
        resources:
          limits:
            memory: 100Mi
          requests:
            cpu: 100m
            memory: 100Mi

Use system serviceAccount for kube-metrics-adapter
Use system serviceAccount for kube-metrics-adapter

Signed-off-by: Mikkel Oscar Lyderik Larsen <81479e3d2d1e6902cb05f938ea9a734a092b1af3@zalando.de>
