Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame] | 1 | --- |
2 | apiVersion: v1 | ||||
3 | kind: ServiceAccount | ||||
4 | metadata: | ||||
5 | name: metrics-server | ||||
6 | namespace: kube-system | ||||
7 | --- | ||||
8 | apiVersion: extensions/v1beta1 | ||||
9 | kind: Deployment | ||||
10 | metadata: | ||||
11 | name: metrics-server | ||||
12 | namespace: kube-system | ||||
13 | labels: | ||||
14 | k8s-app: metrics-server | ||||
15 | spec: | ||||
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 |