blob: ad2abaf31b4eefb71038ec09320190c2ad49cc11 [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001---
2apiVersion: v1
3kind: ServiceAccount
4metadata:
5 name: metrics-server
6 namespace: kube-system
7---
8apiVersion: extensions/v1beta1
9kind: Deployment
10metadata:
11 name: metrics-server
12 namespace: kube-system
13 labels:
14 k8s-app: metrics-server
15spec:
16 selector:
17 matchLabels:
18 k8s-app: metrics-server
19 template:
20 metadata:
21 name: metrics-server
22 labels:
23 k8s-app: metrics-server
24 spec:
25 serviceAccountName: metrics-server
26 volumes:
27 # mount in tmp so we can safely use from-scratch images and/or read-only containers
28 - name: tmp-dir
29 emptyDir: {}
30 containers:
31 - name: metrics-server
32 image: k8s.gcr.io/metrics-server-amd64:v0.3.1
33 imagePullPolicy: Always
34 volumeMounts:
35 - name: tmp-dir
36 mountPath: /tmp
37