-
Notifications
You must be signed in to change notification settings - Fork 6
/
heapster.yaml
117 lines (117 loc) · 3.33 KB
/
heapster.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
k8s-app: stackdriver-heapster
version: v1.6.1
name: heapster
namespace: stackdriver-agents
spec:
replicas: 1
selector:
matchLabels:
k8s-app: stackdriver-heapster
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
k8s-app: stackdriver-heapster
version: v1.6.1
spec:
containers:
- env:
- name: CLUSTER_NAME
valueFrom:
configMapKeyRef:
name: cluster-config
key: cluster_name
- name: CLUSTER_LOCATION
valueFrom:
configMapKeyRef:
name: cluster-config
key: cluster_location
- name: GOOGLE_APPLICATION_CREDENTIALS
valueFrom:
configMapKeyRef:
name: google-cloud-config
key: credentials_path
command:
- /heapster
- --source=kubernetes.summary_api:https://kubernetes.default?kubeletHttps=true&kubeletPort=10250&insecure=true
- --sink=stackdriver:?cluster_name=$(CLUSTER_NAME)&cluster_location=$(CLUSTER_LOCATION)&zone=$(CLUSTER_LOCATION)&use_old_resources=false&use_new_resources=true&min_interval_sec=100&batch_export_timeout_sec=110
image: gcr.io/stackdriver-agents/heapster-amd64:v1.6.1
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8082
scheme: HTTP
initialDelaySeconds: 180
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: heapster
resources:
limits:
cpu: 88m
memory: 204Mi
requests:
cpu: 88m
memory: 204Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/google-cloud/
name: google-cloud-config
- command:
- /pod_nanny
- --cpu=80m
- --extra-cpu=0.5m
- --memory=140Mi
- --extra-memory=4Mi
- --threshold=5
- --deployment=heapster
- --container=heapster
- --poll-period=300000
- --estimator=exponential
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: gcr.io/google_containers/addon-resizer:1.7
imagePullPolicy: IfNotPresent
name: heapster-nanny
resources:
limits:
cpu: 50m
memory: 112360Ki
requests:
cpu: 50m
memory: 112360Ki
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: heapster
serviceAccountName: heapster
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
name: google-cloud-config
name: google-cloud-config