2017-06-01 00:52:06 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: heapster
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
|
|
---
|
2017-11-17 15:51:02 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: heapster-config
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
|
|
|
data:
|
|
|
|
NannyConfiguration: |-
|
|
|
|
apiVersion: nannyconfig/v1alpha1
|
|
|
|
kind: NannyConfiguration
|
|
|
|
---
|
2016-03-12 00:43:54 +00:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
2015-06-25 22:05:26 +00:00
|
|
|
metadata:
|
2017-12-11 17:06:56 +00:00
|
|
|
name: heapster-v1.5.0
|
2015-06-25 04:55:40 +00:00
|
|
|
namespace: kube-system
|
2015-06-25 22:05:26 +00:00
|
|
|
labels:
|
2015-06-16 18:13:27 +00:00
|
|
|
k8s-app: heapster
|
|
|
|
kubernetes.io/cluster-service: "true"
|
2017-02-25 00:53:12 +00:00
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
2017-12-11 17:06:56 +00:00
|
|
|
version: v1.5.0
|
2015-06-25 22:05:26 +00:00
|
|
|
spec:
|
2015-06-16 18:13:27 +00:00
|
|
|
replicas: 1
|
2015-06-25 22:05:26 +00:00
|
|
|
selector:
|
2016-03-12 00:43:54 +00:00
|
|
|
matchLabels:
|
|
|
|
k8s-app: heapster
|
2017-12-11 17:06:56 +00:00
|
|
|
version: v1.5.0
|
2015-06-25 22:05:26 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2015-06-16 18:13:27 +00:00
|
|
|
k8s-app: heapster
|
2017-12-11 17:06:56 +00:00
|
|
|
version: v1.5.0
|
2016-08-19 12:47:56 +00:00
|
|
|
annotations:
|
|
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
2015-06-25 22:05:26 +00:00
|
|
|
spec:
|
2018-02-02 03:26:41 +00:00
|
|
|
priorityClassName: system-cluster-critical
|
2015-06-25 22:05:26 +00:00
|
|
|
containers:
|
Switch to k8s.gcr.io vanity domain
This is the 2nd attempt. The previous was reverted while we figured out
the regional mirrors (oops).
New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest. To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today). For now the staging is an alias to
gcr.io/google_containers (the legacy URL).
When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.
We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it. Nice and
visible, easy to keep track of.
2018-01-17 19:36:53 +00:00
|
|
|
- image: k8s.gcr.io/heapster-amd64:v1.5.0
|
2015-06-16 18:13:27 +00:00
|
|
|
name: heapster
|
2016-08-29 13:48:50 +00:00
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
2016-09-02 09:50:32 +00:00
|
|
|
port: 8082
|
2016-08-29 13:48:50 +00:00
|
|
|
scheme: HTTP
|
|
|
|
initialDelaySeconds: 180
|
|
|
|
timeoutSeconds: 5
|
2015-06-16 18:13:27 +00:00
|
|
|
command:
|
|
|
|
- /heapster
|
2016-03-04 18:37:00 +00:00
|
|
|
- --source=kubernetes.summary_api:''
|
Switch to k8s.gcr.io vanity domain
This is the 2nd attempt. The previous was reverted while we figured out
the regional mirrors (oops).
New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest. To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today). For now the staging is an alias to
gcr.io/google_containers (the legacy URL).
When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.
We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it. Nice and
visible, easy to keep track of.
2018-01-17 19:36:53 +00:00
|
|
|
- image: k8s.gcr.io/addon-resizer:1.8.1
|
2016-03-12 00:43:54 +00:00
|
|
|
name: heapster-nanny
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 50m
|
2016-06-10 15:04:03 +00:00
|
|
|
memory: {{ nanny_memory }}
|
2016-03-12 00:43:54 +00:00
|
|
|
requests:
|
|
|
|
cpu: 50m
|
2016-06-10 15:04:03 +00:00
|
|
|
memory: {{ nanny_memory }}
|
2016-03-12 00:43:54 +00:00
|
|
|
env:
|
|
|
|
- name: MY_POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: MY_POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
2017-11-17 15:51:02 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: heapster-config-volume
|
|
|
|
mountPath: /etc/config
|
2016-03-12 00:43:54 +00:00
|
|
|
command:
|
|
|
|
- /pod_nanny
|
2017-11-17 15:51:02 +00:00
|
|
|
- --config-dir=/etc/config
|
2016-06-10 14:17:17 +00:00
|
|
|
- --cpu={{ base_metrics_cpu }}
|
|
|
|
- --extra-cpu={{ metrics_cpu_per_node }}m
|
2016-05-23 20:14:36 +00:00
|
|
|
- --memory={{ base_metrics_memory }}
|
2016-03-17 20:25:01 +00:00
|
|
|
- --extra-memory={{ metrics_memory_per_node }}Mi
|
2017-09-15 12:30:47 +00:00
|
|
|
- --threshold=5
|
2017-12-11 17:06:56 +00:00
|
|
|
- --deployment=heapster-v1.5.0
|
2016-03-12 00:43:54 +00:00
|
|
|
- --container=heapster
|
|
|
|
- --poll-period=300000
|
2017-09-15 12:30:47 +00:00
|
|
|
- --estimator=exponential
|
2017-11-17 15:51:02 +00:00
|
|
|
volumes:
|
|
|
|
- name: heapster-config-volume
|
|
|
|
configMap:
|
|
|
|
name: heapster-config
|
2017-06-01 00:52:06 +00:00
|
|
|
serviceAccountName: heapster
|
2017-02-16 20:01:52 +00:00
|
|
|
tolerations:
|
|
|
|
- key: "CriticalAddonsOnly"
|
|
|
|
operator: "Exists"
|