mirror of https://github.com/k3s-io/k3s
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
763 B
37 lines
763 B
5 years ago
|
---
|
||
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: metrics-server
|
||
|
namespace: kube-system
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: metrics-server
|
||
|
namespace: kube-system
|
||
|
labels:
|
||
|
k8s-app: metrics-server
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
k8s-app: metrics-server
|
||
|
template:
|
||
|
metadata:
|
||
|
name: metrics-server
|
||
|
labels:
|
||
|
k8s-app: metrics-server
|
||
|
spec:
|
||
|
serviceAccountName: metrics-server
|
||
|
volumes:
|
||
|
# mount in tmp so we can safely use from-scratch images and/or read-only containers
|
||
|
- name: tmp-dir
|
||
|
emptyDir: {}
|
||
|
containers:
|
||
|
- name: metrics-server
|
||
|
image: rancher/metrics-server:v0.3.6
|
||
|
volumeMounts:
|
||
|
- name: tmp-dir
|
||
|
mountPath: /tmp
|
||
|
|