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
|
|
|
annotations:
|
|
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: heapster
|
2017-12-12 07:58:02 +01:00
|
|
|
image: gcr.io/google_containers/heapster-amd64:v1.5.0
|
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
|
2017-12-12 07:58:02 +01:00
|
|
|
image: gcr.io/google_containers/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
|