2018-02-11 08:51:55 +01:00
|
|
|
apiVersion: apps/v1
|
2017-08-28 02:20:29 +02:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: heapster
|
|
|
|
namespace: kube-system
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2017-10-15 04:07:06 +02:00
|
|
|
name: heapster
|
|
|
|
phase: prod
|
2017-08-28 02:20:29 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2017-10-15 04:07:06 +02:00
|
|
|
name: heapster
|
|
|
|
phase: prod
|
2017-08-28 02:20:29 +02:00
|
|
|
spec:
|
2018-02-11 19:45:39 +01:00
|
|
|
serviceAccountName: heapster
|
2017-08-28 02:20:29 +02:00
|
|
|
containers:
|
|
|
|
- name: heapster
|
2018-03-22 04:32:01 +01:00
|
|
|
image: k8s.gcr.io/heapster-amd64:v1.5.2
|
2017-08-28 02:20:29 +02:00
|
|
|
command:
|
|
|
|
- /heapster
|
|
|
|
- --source=kubernetes.summary_api:''
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8082
|
|
|
|
scheme: HTTP
|
|
|
|
initialDelaySeconds: 180
|
|
|
|
timeoutSeconds: 5
|
|
|
|
- name: heapster-nanny
|
2018-02-11 19:45:39 +01:00
|
|
|
image: k8s.gcr.io/addon-resizer:1.7
|
2017-08-28 02:20:29 +02:00
|
|
|
command:
|
|
|
|
- /pod_nanny
|
|
|
|
- --cpu=80m
|
|
|
|
- --extra-cpu=0.5m
|
|
|
|
- --memory=140Mi
|
|
|
|
- --extra-memory=4Mi
|
2017-12-12 07:58:02 +01:00
|
|
|
- --threshold=5
|
2017-10-15 04:07:06 +02:00
|
|
|
- --deployment=heapster
|
2017-08-28 02:20:29 +02:00
|
|
|
- --container=heapster
|
|
|
|
- --poll-period=300000
|
2017-12-12 07:58:02 +01:00
|
|
|
- --estimator=exponential
|
2017-08-28 02:20:29 +02:00
|
|
|
env:
|
|
|
|
- name: MY_POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: MY_POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 50m
|
|
|
|
memory: 90Mi
|
|
|
|
requests:
|
|
|
|
cpu: 50m
|
|
|
|
memory: 90Mi
|