mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 02:10:21 +00:00
98 lines
2.5 KiB
YAML
98 lines
2.5 KiB
YAML
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: metrics-server
|
||
|
namespace: kube-system
|
||
|
labels:
|
||
|
kubernetes.io/cluster-service: "true"
|
||
|
addonmanager.kubernetes.io/mode: Reconcile
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: metrics-server-config
|
||
|
namespace: kube-system
|
||
|
labels:
|
||
|
kubernetes.io/cluster-service: "true"
|
||
|
addonmanager.kubernetes.io/mode: EnsureExists
|
||
|
data:
|
||
|
NannyConfiguration: |-
|
||
|
apiVersion: nannyconfig/v1alpha1
|
||
|
kind: NannyConfiguration
|
||
|
---
|
||
|
apiVersion: extensions/v1beta1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: metrics-server-v0.2.0
|
||
|
namespace: kube-system
|
||
|
labels:
|
||
|
k8s-app: metrics-server
|
||
|
kubernetes.io/cluster-service: "true"
|
||
|
addonmanager.kubernetes.io/mode: Reconcile
|
||
|
version: v0.2.0
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
k8s-app: metrics-server
|
||
|
version: v0.2.0
|
||
|
template:
|
||
|
metadata:
|
||
|
name: metrics-server
|
||
|
labels:
|
||
|
k8s-app: metrics-server
|
||
|
version: v0.2.0
|
||
|
annotations:
|
||
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
||
|
spec:
|
||
|
serviceAccountName: metrics-server
|
||
|
containers:
|
||
|
- name: metrics-server
|
||
|
image: gcr.io/google_containers/metrics-server-amd64:v0.2.0
|
||
|
command:
|
||
|
- /metrics-server
|
||
|
- --source=kubernetes.summary_api:''
|
||
|
ports:
|
||
|
- containerPort: 443
|
||
|
name: https
|
||
|
protocol: TCP
|
||
|
- name: metrics-server-nanny
|
||
|
image: gcr.io/google_containers/addon-resizer:1.8.1
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: 100m
|
||
|
memory: 300Mi
|
||
|
requests:
|
||
|
cpu: 5m
|
||
|
memory: 50Mi
|
||
|
env:
|
||
|
- name: MY_POD_NAME
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: metadata.name
|
||
|
- name: MY_POD_NAMESPACE
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: metadata.namespace
|
||
|
volumeMounts:
|
||
|
- name: metrics-server-config-volume
|
||
|
mountPath: /etc/config
|
||
|
command:
|
||
|
- /pod_nanny
|
||
|
- --config-dir=/etc/config
|
||
|
- --cpu=40m
|
||
|
- --extra-cpu=0.5m
|
||
|
- --memory=140Mi
|
||
|
- --extra-memory=4Mi
|
||
|
- --threshold=5
|
||
|
- --deployment=metrics-server-v0.2.0
|
||
|
- --container=metrics-server
|
||
|
- --poll-period=300000
|
||
|
- --estimator=exponential
|
||
|
volumes:
|
||
|
- name: metrics-server-config-volume
|
||
|
configMap:
|
||
|
name: metrics-server-config
|
||
|
tolerations:
|
||
|
- key: "CriticalAddonsOnly"
|
||
|
operator: "Exists"
|