github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/scripts/vagrant/provision/manifests/kube-prometheus/prometheus-adapter-deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: prometheus-adapter
     5    namespace: monitoring
     6  spec:
     7    replicas: 1
     8    selector:
     9      matchLabels:
    10        name: prometheus-adapter
    11    strategy:
    12      rollingUpdate:
    13        maxSurge: 1
    14        maxUnavailable: 0
    15    template:
    16      metadata:
    17        labels:
    18          name: prometheus-adapter
    19      spec:
    20        containers:
    21        - args:
    22          - --cert-dir=/var/run/serving-cert
    23          - --config=/etc/adapter/config.yaml
    24          - --logtostderr=true
    25          - --metrics-relist-interval=1m
    26          - --prometheus-url=http://prometheus-k8s.monitoring.svc:9090/
    27          - --secure-port=6443
    28          image: quay.io/coreos/k8s-prometheus-adapter-amd64:v0.4.1
    29          name: prometheus-adapter
    30          ports:
    31          - containerPort: 6443
    32          volumeMounts:
    33          - mountPath: /tmp
    34            name: tmpfs
    35            readOnly: false
    36          - mountPath: /var/run/serving-cert
    37            name: volume-serving-cert
    38            readOnly: false
    39          - mountPath: /etc/adapter
    40            name: config
    41            readOnly: false
    42        nodeSelector:
    43          beta.kubernetes.io/os: linux
    44        serviceAccountName: prometheus-adapter
    45        volumes:
    46        - emptyDir: {}
    47          name: tmpfs
    48        - emptyDir: {}
    49          name: volume-serving-cert
    50        - configMap:
    51            name: adapter-config
    52          name: config