mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Set resource limit for both heapster and influxdb container based on data collected
by #10335. Please noted that both influxdb and heapster could be oom-killed due to memory leakage here.
This commit is contained in:
parent
1715505d6b
commit
4f2d22263e
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster:v0.15.0
|
- image: gcr.io/google_containers/heapster:v0.15.0
|
||||||
name: heapster
|
name: heapster
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster:v0.15.0
|
- image: gcr.io/google_containers/heapster:v0.15.0
|
||||||
name: heapster
|
name: heapster
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster:v0.15.0
|
- image: gcr.io/google_containers/heapster:v0.15.0
|
||||||
name: heapster
|
name: heapster
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster_influxdb:v0.3
|
- image: gcr.io/google_containers/heapster_influxdb:v0.3
|
||||||
name: influxdb
|
name: influxdb
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8083
|
- containerPort: 8083
|
||||||
hostPort: 8083
|
hostPort: 8083
|
||||||
@ -29,6 +33,10 @@ spec:
|
|||||||
hostPort: 8086
|
hostPort: 8086
|
||||||
- image: gcr.io/google_containers/heapster_grafana:v0.7
|
- image: gcr.io/google_containers/heapster_grafana:v0.7
|
||||||
name: grafana
|
name: grafana
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
env:
|
env:
|
||||||
- name: INFLUXDB_EXTERNAL_URL
|
- name: INFLUXDB_EXTERNAL_URL
|
||||||
value: /api/v1beta3/proxy/namespaces/default/services/monitoring-influxdb:api/db/
|
value: /api/v1beta3/proxy/namespaces/default/services/monitoring-influxdb:api/db/
|
||||||
|
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster:v0.15.0
|
- image: gcr.io/google_containers/heapster:v0.15.0
|
||||||
name: heapster
|
name: heapster
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
Loading…
Reference in New Issue
Block a user