kubeasz/manifests/metrics-server/metrics-server-deployment.yaml

34 lines
770 B
YAML
Raw Normal View History

2018-06-17 10:46:25 +08:00
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: metrics-server
namespace: kube-system
---
apiVersion: extensions/v1beta1
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
containers:
- name: metrics-server
#image: gcr.io/google_containers/metrics-server-amd64:v0.2.1
image: mirrorgooglecontainers/metrics-server-amd64:v0.2.1
2018-06-22 18:01:43 +08:00
imagePullPolicy: IfNotPresent
2018-06-17 10:46:25 +08:00
command:
- /metrics-server
- --source=kubernetes.summary_api:''